NTP-1234 | GHA | Branch Cut (#304)

This commit is contained in:
Shivam Goyal
2025-02-11 20:14:14 +05:30
committed by GitHub
parent 0b80b88bb6
commit 15265f1f15

View File

@@ -20,17 +20,22 @@ jobs:
branch-cut: branch-cut:
runs-on: [ default ] runs-on: [ default ]
needs: [ print-inputs ] needs: [ print-inputs ]
environment: RELEASE_BRANCH_CUT environment: release
steps: 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 - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
token: ${{ secrets.GH_PAT }} token: ${{ steps.get-token.outputs.token }}
- name: Setup Git Credentials for @${{ github.actor }} - name: Setup Git Credentials for navi-android[bot]
run: | run: |
export GITHUB_EMAIL=$(echo "$GITHUB_ACTOR@navi.com" | sed 's/-/./g' | sed 's/_navi//g') git config --global user.name "navi-android[bot]"
git config --global user.email "$GITHUB_EMAIL" git config --global user.email "194247829+navi-android[bot]@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
- name: Checkout release-${{ inputs.version }} from ${{ github.ref_name }} - name: Checkout release-${{ inputs.version }} from ${{ github.ref_name }}
run: git checkout -b release-${{ inputs.version }} run: git checkout -b release-${{ inputs.version }}
- name: Update Version (${{ inputs.version }}) - name: Update Version (${{ inputs.version }})