@@ -60,16 +60,22 @@ jobs:
6060 date=$(date "+%Y-%m-%d")
6161 sed -Ei "s/^## Unreleased$/## Version $VERSION ($date)/" CHANGELOG.md
6262
63- - name : Use CLA approved github bot
64- run : .github/scripts/use-cla-approved-github-bot.sh
63+ - name : Use CLA approved bot
64+ run : .github/scripts/use-cla-approved-bot.sh
65+
66+ - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
67+ id : otelbot-token
68+ with :
69+ app-id : ${{ vars.OTELBOT_APP_ID }}
70+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
6571
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"
@@ -111,17 +117,23 @@ jobs:
111117 date=$(date "+%Y-%m-%d")
112118 sed -Ei "s/^## Unreleased$/## Unreleased\n\n## Version $VERSION ($date)/" CHANGELOG.md
113119
114- - name : Use CLA approved github bot
115- run : .github/scripts/use-cla-approved-github-bot.sh
120+ - name : Use CLA approved bot
121+ run : .github/scripts/use-cla-approved-bot.sh
122+
123+ - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
124+ id : otelbot-token
125+ with :
126+ app-id : ${{ vars.OTELBOT_APP_ID }}
127+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
116128
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