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