File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ jobs:
104
104
backport :
105
105
timeout-minutes : 45
106
106
runs-on : ubuntu-latest
107
+ environment : Automation
107
108
needs : [prepare]
108
109
if : ${{ (github.event_name == 'push') && needs.prepare.outputs.backport_target_branches != '[]' }}
109
110
strategy :
@@ -114,17 +115,24 @@ jobs:
114
115
SOURCE_BRANCH : ${{ needs.prepare.outputs.backport_source_branch }}
115
116
TARGET_BRANCH : ${{ matrix.target_branch }}
116
117
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 }}
117
123
- uses : actions/checkout@v4
118
124
with :
119
125
fetch-depth : 0 # Need full history for calculation of diffs
120
126
- uses : ./.github/actions/release-initialise
121
127
122
128
- name : Update older release branch
129
+ env :
130
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
123
131
run : |
124
132
echo SOURCE_BRANCH=${SOURCE_BRANCH}
125
133
echo TARGET_BRANCH=${TARGET_BRANCH}
126
134
python .github/update-release-branch.py \
127
- --github-token ${{ secrets. GITHUB_TOKEN } } \
135
+ --github-token ${GITHUB_TOKEN} \
128
136
--repository-nwo ${{ github.repository }} \
129
137
--source-branch ${SOURCE_BRANCH} \
130
138
--target-branch ${TARGET_BRANCH} \
You can’t perform that action at this time.
0 commit comments