File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ jobs:
104104 backport :
105105 timeout-minutes : 45
106106 runs-on : ubuntu-latest
107+ environment : Automation
107108 needs : [prepare]
108109 if : ${{ (github.event_name == 'push') && needs.prepare.outputs.backport_target_branches != '[]' }}
109110 strategy :
@@ -114,17 +115,24 @@ jobs:
114115 SOURCE_BRANCH : ${{ needs.prepare.outputs.backport_source_branch }}
115116 TARGET_BRANCH : ${{ matrix.target_branch }}
116117 steps :
118+ - uses : actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4
119+ id : app-token
120+ with :
121+ app-id : ${{ vars.AUTOMATION_APP_ID }}
122+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
117123 - uses : actions/checkout@v4
118124 with :
119125 fetch-depth : 0 # Need full history for calculation of diffs
120126 - uses : ./.github/actions/release-initialise
121127
122128 - name : Update older release branch
129+ env :
130+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
123131 run : |
124132 echo SOURCE_BRANCH=${SOURCE_BRANCH}
125133 echo TARGET_BRANCH=${TARGET_BRANCH}
126134 python .github/update-release-branch.py \
127- --github-token ${{ secrets. GITHUB_TOKEN } } \
135+ --github-token ${GITHUB_TOKEN} \
128136 --repository-nwo ${{ github.repository }} \
129137 --source-branch ${SOURCE_BRANCH} \
130138 --target-branch ${TARGET_BRANCH} \
You can’t perform that action at this time.
0 commit comments