From a4820867767341a1ba35938d06d346bd4099618b Mon Sep 17 00:00:00 2001 From: Nitsan Zohar Date: Mon, 10 Apr 2023 16:09:18 +0300 Subject: [PATCH] Add create-tag with needs (#193) --- .../workflows/{update-info.yml => post-merge.yml} | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) rename .github/workflows/{update-info.yml => post-merge.yml} (88%) diff --git a/.github/workflows/update-info.yml b/.github/workflows/post-merge.yml similarity index 88% rename from .github/workflows/update-info.yml rename to .github/workflows/post-merge.yml index 50734b6..1403f58 100644 --- a/.github/workflows/update-info.yml +++ b/.github/workflows/post-merge.yml @@ -1,4 +1,4 @@ -name: Write Info to File +name: 'Post Merge' on: push: branches: @@ -50,7 +50,13 @@ jobs: git push "https://$GITHUB_ACTOR@github.com/$GITHUB_REPOSITORY" env: VERSION: ${{ env.nextVersion }} + create-tag: + name: 'Create Tag' + needs: write-info + runs-on: ubuntu-latest + steps: + - name: 'Checkout Source Code' + uses: actions/checkout@v3 - uses: rickstaa/action-create-tag@v1.6.1 - id: "tag_create" with: - tag: ${{ env.nextVersion }} + tag: ${{ env.currentVersion }}