From b2a6f21ee97b9211736929ae550799024dc4c62d Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Mon, 22 Jan 2024 13:35:16 +1100 Subject: [PATCH] Updated VERSION and added bump tag ci --- .github/workflows/bump-tag.yml | 28 ++++++++++++++++++++++++++++ VERSION | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/bump-tag.yml 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