@@ -61,13 +61,19 @@ jobs:
6161 - name : Use CLA approved github bot
6262 run : .github/scripts/use-cla-approved-github-bot.sh
6363
64+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
65+ id : otelbot-token
66+ with :
67+ app-id : ${{ vars.OTELBOT_APP_ID }}
68+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
69+
6470 - name : Create pull request against the release branch
6571 env :
6672 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
67- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
73+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
6874 run : |
6975 message="Prepare release $VERSION"
70- branch="opentelemetrybot /prepare-release-${VERSION}"
76+ branch="otelbot /prepare-release-${VERSION}"
7177
7278 git checkout -b $branch
7379 git commit -a -m "$message"
@@ -114,14 +120,20 @@ jobs:
114120 - name : Use CLA approved github bot
115121 run : .github/scripts/use-cla-approved-github-bot.sh
116122
123+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
124+ id : otelbot-token
125+ with :
126+ app-id : ${{ vars.OTELBOT_APP_ID }}
127+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
128+
117129 - name : Create pull request against main
118130 env :
119131 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
120- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
132+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
121133 run : |
122134 message="Update version to $NEXT_VERSION"
123135 body="Update version to \`$NEXT_VERSION\`."
124- branch="opentelemetrybot /update-version-to-${NEXT_VERSION}"
136+ branch="otelbot /update-version-to-${NEXT_VERSION}"
125137
126138 git checkout -b $branch
127139 git commit -a -m "$message"
0 commit comments