NTP-1234 | GHA | Branch Cut (#304)
This commit is contained in:
17
.github/workflows/branch-cut.yml
vendored
17
.github/workflows/branch-cut.yml
vendored
@@ -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 }})
|
||||
|
||||
Reference in New Issue
Block a user