From febd9d7ae5c77ec1d3b4e86791abdb174ce3829b Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Tue, 12 Mar 2024 00:12:25 +0530 Subject: [PATCH] TP-39914 | fix --- .github/workflows/codePush.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codePush.yml b/.github/workflows/codePush.yml index db67abf5..7ba467da 100644 --- a/.github/workflows/codePush.yml +++ b/.github/workflows/codePush.yml @@ -61,18 +61,21 @@ jobs: runs-on: [default] if: success() && (github.event.inputs.environment == 'QA') # Only create tag for Prod releases, have put QA for testing steps: - - name: Create Git tag - run: | - TAG_NAME="${{ needs.generate.outputs.package_version }}" - git tag $TAG_NAME - git push origin $TAG_NAME - env: - GITHUB_TOKEN: ${{ secrets.MY_REPO_PAT }} - name: Checkout uses: actions/checkout@v2 with: token: ${{ secrets.MY_REPO_PAT }} submodules: recursive + persist-credentials: true + - name: Create Git tag + run: | + TAG_NAME="${{ needs.generate.outputs.package_version }}" + git config --local user.email "${{ github.actor }}@users.noreply.github.com" + git config --local user.name "${{ github.actor }}" + git tag $TAG_NAME + git push origin $TAG_NAME + env: + GITHUB_TOKEN: ${{ secrets.MY_REPO_PAT }} - name: Create release tag run: | TAG_NAME="${{ needs.generate.outputs.package_version }}"