Migrate from opentelemetrybot to otelbot (#2517)

Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
This commit is contained in:
OpenTelemetry Bot 2025-07-14 17:35:22 -07:00 committed by GitHub
parent 641ac4fede
commit 37d19be4c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
git config user.name opentelemetrybot
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
git config user.name otelbot
git config user.email 197425009+otelbot@users.noreply.github.com

View File

@ -33,7 +33,7 @@ jobs:
--jq .tagName)
matches=$(gh pr list \
--author opentelemetrybot \
--author otelbot[bot] \
--state open \
--search "in:title \"Update spec repo links to $latest_version\"")
if [ ! -z "$matches" ]
@ -67,15 +67,21 @@ jobs:
.github/scripts/update-spec-repo-links.sh $VERSION
sed -i "s/^PREVIOUS_SPECIFICATION_VERSION=.*/PREVIOUS_SPECIFICATION_VERSION=$VERSION/" .github/scripts/update-spec-repo-links.sh
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
- name: Create pull request
env:
VERSION: ${{ needs.check-versions.outputs.latest-version }}
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
message="Update spec repo links to $VERSION"
body="Update spec repo links to \`$VERSION\`."
branch="opentelemetrybot/update-spec-repo-links-to-$VERSION"
branch="otelbot/update-spec-repo-links-to-$VERSION"
git checkout -b $branch
git commit -a -m "$message"

View File

@ -41,15 +41,21 @@ jobs:
run: |
make chlog-update VERSION=v${{ inputs.version }}
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
- name: Create pull request
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
version=${{ inputs.version }}
message="[chore] Prepare release v${version}"
body="Prepare release \`v${version}\`."
branch="opentelemetrybot/prepare-release-v${version}"
branch="otelbot/prepare-release-v${version}"
git checkout -b $branch
git commit -a -m "$message"