From 15265f1f15eb4071544be23f99a6a166fbac75eb Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Tue, 11 Feb 2025 20:14:14 +0530 Subject: [PATCH] NTP-1234 | GHA | Branch Cut (#304) --- .github/workflows/branch-cut.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/branch-cut.yml b/.github/workflows/branch-cut.yml index 1003cc4..450549d 100644 --- a/.github/workflows/branch-cut.yml +++ b/.github/workflows/branch-cut.yml @@ -20,17 +20,22 @@ jobs: branch-cut: runs-on: [ default ] needs: [ print-inputs ] - environment: RELEASE_BRANCH_CUT + environment: release steps: + - name: Create GitHub App Token + uses: navi-synced-actions/actions-create-github-app-token@v1 + id: get-token + with: + private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }} + app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }} - name: Checkout Repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_PAT }} - - name: Setup Git Credentials for @${{ github.actor }} + token: ${{ steps.get-token.outputs.token }} + - name: Setup Git Credentials for navi-android[bot] run: | - export GITHUB_EMAIL=$(echo "$GITHUB_ACTOR@navi.com" | sed 's/-/./g' | sed 's/_navi//g') - git config --global user.email "$GITHUB_EMAIL" - git config --global user.name "$GITHUB_ACTOR" + git config --global user.name "navi-android[bot]" + git config --global user.email "194247829+navi-android[bot]@users.noreply.github.com" - name: Checkout release-${{ inputs.version }} from ${{ github.ref_name }} run: git checkout -b release-${{ inputs.version }} - name: Update Version (${{ inputs.version }})