Migrate from opentelemetrybot to otelbot (#2517)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
This commit is contained in:
parent
641ac4fede
commit
37d19be4c6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue