@@ -90,14 +90,20 @@ jobs:
9090 - name : Use CLA approved github bot
9191 run : .github/scripts/use-cla-approved-github-bot.sh
9292
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+
9399 - name : Create pull request against the release branch
94100 id : create_release_branch_pr
95101 env :
96102 # 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 }}
98104 run : |
99105 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}"
101107
102108 git commit -a -m "$message"
103109 git push origin HEAD:$branch
@@ -178,15 +184,21 @@ jobs:
178184 - name : Use CLA approved github bot
179185 run : .github/scripts/use-cla-approved-github-bot.sh
180186
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+
181193 - name : Create pull request against main
182194 id : create_main_pr
183195 env :
184196 # 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 }}
186198 run : |
187199 message="Update version to ${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}"
188200 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}"
190202
191203 git commit -a -m "$message"
192204 git push origin HEAD:$branch
0 commit comments