3333 | sed 's/^v//')
3434
3535 matches=$(gh pr list \
36- --author opentelemetrybot \
36+ --author otelbot \
3737 --state open \
3838 --search "in:title \"Update the OpenTelemetry SDK version to $latest_version\"")
3939 if [ ! -z "$matches" ]
6262 VERSION : ${{ needs.check-versions.outputs.latest-version }}
6363 run : ./.github/scripts/update-sdk-version.sh $VERSION
6464
65- - name : Use CLA approved github bot
66- run : .github/scripts/use-cla-approved-github-bot.sh
67-
6865 - name : Free disk space
6966 run : .github/scripts/gha-free-disk-space.sh
7067
@@ -84,16 +81,25 @@ jobs:
8481 if : failure()
8582 run : git checkout -- licenses
8683
84+ - name : Use CLA approved bot
85+ run : .github/scripts/use-cla-approved-bot.sh
86+
87+ - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
88+ id : otelbot-token
89+ with :
90+ app-id : ${{ vars.OTELBOT_APP_ID }}
91+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
92+
8793 - name : Create pull request against main
8894 if : success() || failure()
8995 env :
9096 VERSION : ${{ needs.check-versions.outputs.latest-version }}
9197 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
92- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
98+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
9399 run : |
94100 message="Update the OpenTelemetry SDK version to $VERSION"
95101 body="Update the OpenTelemetry SDK version to \`$VERSION\`."
96- branch="opentelemetrybot /update-opentelemetry-sdk-to-${VERSION}"
102+ branch="otelbot /update-opentelemetry-sdk-to-${VERSION}"
97103
98104 git checkout -b $branch
99105 git add -u
0 commit comments