@@ -56,16 +56,22 @@ jobs:
5656          date=$(date "+%Y-%m-%d") 
5757          sed -Ei "s/^## Unreleased$/## Version $VERSION ($date)/" CHANGELOG.md 
5858
59- name : Use CLA approved github bot 
60-         run : .github/scripts/use-cla-approved-github-bot.sh 
59+ name : Use CLA approved bot 
60+         run : .github/scripts/use-cla-approved-bot.sh 
61+ 
62+       - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7  #  v1.11.3
63+         id : otelbot-token 
64+         with :
65+           app-id : ${{ vars.OTELBOT_APP_ID }} 
66+           private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }} 
6167
6268      - name : Create pull request against the release branch 
6369        env :
6470          #  not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
65-           GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN  }} 
71+           GH_TOKEN : ${{ steps.otelbot-token.outputs.token  }} 
6672        run : | 
6773          message="Prepare release $VERSION" 
68-           branch="opentelemetrybot /prepare-release-${VERSION}" 
74+           branch="otelbot /prepare-release-${VERSION}" 
6975
7076          git checkout -b $branch 
7177          git commit -a -m "$message" 
@@ -107,17 +113,23 @@ jobs:
107113          date=$(date "+%Y-%m-%d") 
108114          sed -Ei "s/^## Unreleased$/## Unreleased\n\n## Version $VERSION ($date)/" CHANGELOG.md 
109115
110- name : Use CLA approved github bot 
111-         run : .github/scripts/use-cla-approved-github-bot.sh 
116+ name : Use CLA approved bot 
117+         run : .github/scripts/use-cla-approved-bot.sh 
118+ 
119+       - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7  #  v1.11.3
120+         id : otelbot-token 
121+         with :
122+           app-id : ${{ vars.OTELBOT_APP_ID }} 
123+           private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }} 
112124
113125      - name : Create pull request against main 
114126        env :
115127          #  not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
116-           GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN  }} 
128+           GH_TOKEN : ${{ steps.otelbot-token.outputs.token  }} 
117129        run : | 
118130          message="Update version to $NEXT_VERSION" 
119131          body="Update version to \`$NEXT_VERSION\`." 
120-           branch="opentelemetrybot /update-version-to-${NEXT_VERSION}" 
132+           branch="otelbot /update-version-to-${NEXT_VERSION}" 
121133
122134          git checkout -b $branch 
123135          git commit -a -m "$message" 
0 commit comments