@@ -93,14 +93,20 @@ jobs:
93
93
- name : Use CLA approved github bot
94
94
run : .github/scripts/use-cla-approved-github-bot.sh
95
95
96
+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
97
+ id : otelbot-token
98
+ with :
99
+ app-id : ${{ vars.OTELBOT_APP_ID }}
100
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
101
+
96
102
- name : Create pull request against the release branch
97
103
id : create_release_branch_pr
98
104
env :
99
105
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
100
- GITHUB_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
106
+ GITHUB_TOKEN : ${{ steps.otelbot-token.outputs.token }}
101
107
run : |
102
108
message="Prepare release ${STABLE_VERSION}/${UNSTABLE_VERSION}"
103
- branch="opentelemetrybot /prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"
109
+ branch="otelbot /prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"
104
110
105
111
git commit -a -m "$message"
106
112
git push origin HEAD:$branch
@@ -187,15 +193,21 @@ jobs:
187
193
- name : Use CLA approved github bot
188
194
run : .github/scripts/use-cla-approved-github-bot.sh
189
195
196
+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
197
+ id : otelbot-token-main
198
+ with :
199
+ app-id : ${{ vars.OTELBOT_APP_ID }}
200
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
201
+
190
202
- name : Create pull request against main
191
203
id : create_main_pr
192
204
env :
193
205
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
194
- GITHUB_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
206
+ GITHUB_TOKEN : ${{ steps.otelbot-token-main.outputs.token }}
195
207
run : |
196
208
message="Update version to ${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}"
197
209
body="Update version to \`${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}\`."
198
- branch="opentelemetrybot /update-version-to-${STABLE_NEXT_VERSION}-${UNSTABLE_NEXT_VERSION}"
210
+ branch="otelbot /update-version-to-${STABLE_NEXT_VERSION}-${UNSTABLE_NEXT_VERSION}"
199
211
200
212
git commit -a -m "$message"
201
213
git push origin HEAD:$branch
0 commit comments