@@ -63,13 +63,19 @@ jobs:
6363 - name : Use CLA approved github bot
6464 run : .github/scripts/use-cla-approved-github-bot.sh
6565
66+ - uses : actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
67+ id : otelbot-token
68+ with :
69+ app-id : ${{ vars.OTELBOT_APP_ID }}
70+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
71+
6672 - name : Create pull request against the release branch
6773 env :
6874 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
69- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
75+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
7076 run : |
7177 message="Prepare release $VERSION"
72- branch="opentelemetrybot /prepare-release-${VERSION}"
78+ branch="otelbot /prepare-release-${VERSION}"
7379
7480 git checkout -b $branch
7581 git commit -a -m "$message"
@@ -105,14 +111,20 @@ jobs:
105111 - name : Use CLA approved github bot
106112 run : .github/scripts/use-cla-approved-github-bot.sh
107113
114+ - uses : actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
115+ id : otelbot-token
116+ with :
117+ app-id : ${{ vars.OTELBOT_APP_ID }}
118+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
119+
108120 - name : Create pull request against main
109121 env :
110122 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
111- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
123+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
112124 run : |
113125 message="Update changelog for $VERSION release"
114126 body="Update changelog for \`$VERSION\` release."
115- branch="opentelemetrybot /update-version-to-${VERSION}"
127+ branch="otelbot /update-version-to-${VERSION}"
116128
117129 git checkout -b $branch
118130 git commit -a -m "$message"
0 commit comments