@@ -93,14 +93,20 @@ jobs:
9393 - name : Use CLA approved github bot
9494 run : .github/scripts/use-cla-approved-github-bot.sh
9595
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+
96102 - name : Create pull request against the release branch
97103 id : create_release_branch_pr
98104 env :
99105 # 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 }}
101107 run : |
102108 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}"
104110
105111 git commit -a -m "$message"
106112 git push origin HEAD:$branch
@@ -187,15 +193,21 @@ jobs:
187193 - name : Use CLA approved github bot
188194 run : .github/scripts/use-cla-approved-github-bot.sh
189195
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+
190202 - name : Create pull request against main
191203 id : create_main_pr
192204 env :
193205 # 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 }}
195207 run : |
196208 message="Update version to ${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}"
197209 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}"
199211
200212 git commit -a -m "$message"
201213 git push origin HEAD:$branch
0 commit comments