diff --git a/.github/workflows/bump-tag.yml b/.github/workflows/bump-tag.yml new file mode 100644 index 0000000..556a11f --- /dev/null +++ b/.github/workflows/bump-tag.yml @@ -0,0 +1,28 @@ +on: + push: + branches: + - 'release-*' + paths: + - 'VERSION' +jobs: + truth-update: + name: Check and Update Truth Tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-tags: true + + - name: Existing Tag Check + id: truth + run: | + VERSION_TAG=$(git tag -l $(cat VERSION)) + if [ ! -z "$VERSION_TAG" ]; then + echo "exists=true" >> $GITHUB_OUTPUT + fi + + - name: Update Tag + if: ${{ steps.truth.outputs.exists }} + run: | + git tag $(cat VERSION) + git push --tags diff --git a/VERSION b/VERSION index 415b19f..9f55b2c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0 \ No newline at end of file +3.0