diff --git a/.github/workflows/branch_cut.yml b/.github/workflows/branch_cut.yml index bdf4c86dd6..b70fd3ad48 100644 --- a/.github/workflows/branch_cut.yml +++ b/.github/workflows/branch_cut.yml @@ -1,4 +1,4 @@ -name: Branch Cut CI +name: Release Branch Cut CI on: workflow_dispatch: @@ -14,6 +14,7 @@ on: jira_issue: description: Jira Issue ID (e.g., TP-12345) required: true + default: 'TP-00000' type: string branch_prefix: description: Branch Prefix (e.g., release-) @@ -24,12 +25,16 @@ on: jobs: branch-cut: runs-on: [ default ] + environment: RELEASE_BRANCH_CUT steps: - name: Checkout uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_PAT }} - name: Setup Git Credentials for @${{ github.actor }} run: | - git config --global user.email "${GITHUB_ACTOR//-/.}@navi.com" + 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" - name: Checkout ${{ github.event.inputs.branch_prefix }}${{ github.event.inputs.version_name }} from ${{ github.ref_name }} run: git checkout -b ${{ github.event.inputs.branch_prefix }}${{ github.event.inputs.version_name }}