From a51d3b72cf494c67b9aca4b1f972d61623ff6c45 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 10:35:35 +0300 Subject: [PATCH] add tag --- .github/workflows/prepare-for-QA-release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare-for-QA-release.yml b/.github/workflows/prepare-for-QA-release.yml index 502841d..8ec238a 100644 --- a/.github/workflows/prepare-for-QA-release.yml +++ b/.github/workflows/prepare-for-QA-release.yml @@ -14,14 +14,20 @@ jobs: run: | echo ${{github.ref_name}} TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') - echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV + echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV + TAG_RC=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+') + echo "PLUGIN_VERSION_RC=$TAG_RC" >> $GITHUB_ENV + - name: run script - run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{github.ref_name}} + run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{env.PLUGIN_VERSION_RC}} - name: Commit changes uses: EndBug/add-and-commit@v9 with: author_name: Moris Gateno author_email: moris.gateno@appsflyer.com message: 'Commited from github action - prepaing the repo for QA locally.' - add: '.' + add: '.' + tag: "${{env.PLUGIN_VERSION_RC}} --force" + tag_push: '--force' +