-
Notifications
You must be signed in to change notification settings - Fork 100
Migrate from opentelemetrybot to otelbot #1066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,13 +61,19 @@ jobs: | |
| - name: Use CLA approved github bot | ||
| run: .github/scripts/use-cla-approved-github-bot.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 against the release branch | ||
| 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 }} | ||
|
Comment on lines
+64
to
+73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can I assume it's not very expensive to regenerate this every time? Does this have the benefit of not having the token stored in this repo or what is the benefit?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, it's not expensive the benefit is that it's a short-lived token, reducing the window of vulnerability if it were ever compromised of course, we still have to be vigilant not to expose
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense, thanks for the clarification. |
||
| run: | | ||
| message="Prepare release $VERSION" | ||
| branch="opentelemetrybot/prepare-release-${VERSION}" | ||
| branch="otelbot/prepare-release-${VERSION}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMPORTANTThis needs to be merged at the same time as https://github.com/open-telemetry/admin/pull/125 (note: maintainers should be able to approve and merge that PR) |
||
|
|
||
| git checkout -b $branch | ||
| git commit -a -m "$message" | ||
|
|
@@ -114,14 +120,20 @@ jobs: | |
| - name: Use CLA approved github bot | ||
| run: .github/scripts/use-cla-approved-github-bot.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 against main | ||
| 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: | | ||
| message="Update version to $NEXT_VERSION" | ||
| body="Update version to \`$NEXT_VERSION\`." | ||
| branch="opentelemetrybot/update-version-to-${NEXT_VERSION}" | ||
| branch="otelbot/update-version-to-${NEXT_VERSION}" | ||
|
|
||
| git checkout -b $branch | ||
| git commit -a -m "$message" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove the opentelemetrybot line after the next release