Skip to content

Commit e679c4f

Browse files
committed
Switch to otelbot app
1 parent e126566 commit e679c4f

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.github/scripts/generate-release-contributors.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ echo $contributors1 $contributors2 \
8484
| sort -uf \
8585
| grep -v linux-foundation-easycla \
8686
| grep -v github-actions \
87-
| grep -v dependabot \
87+
| grep -v renovate \
88+
| grep -v otelbot \
8889
| grep -v codecov \
89-
| grep -v opentelemetrybot \
9090
| sed 's/^/@/'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash -e
22

3-
git config user.name opentelemetrybot
4-
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
3+
git config user.name otelbot
4+
git config user.email 197425009+otelbot@users.noreply.github.com

.github/workflows/prepare-release-branch.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,19 @@ jobs:
6363
- name: Use CLA approved github bot
6464
run: .github/scripts/use-cla-approved-github-bot.sh
6565

66+
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
67+
id: otelbot-token
68+
with:
69+
app-id: ${{ vars.OTELBOT_APP_ID }}
70+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
71+
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"
@@ -105,14 +111,20 @@ jobs:
105111
- name: Use CLA approved github bot
106112
run: .github/scripts/use-cla-approved-github-bot.sh
107113

114+
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
115+
id: otelbot-token
116+
with:
117+
app-id: ${{ vars.OTELBOT_APP_ID }}
118+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
119+
108120
- name: Create pull request against main
109121
env:
110122
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
111-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
123+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
112124
run: |
113125
message="Update changelog for $VERSION release"
114126
body="Update changelog for \`$VERSION\` release."
115-
branch="opentelemetrybot/update-version-to-${VERSION}"
127+
branch="otelbot/update-version-to-${VERSION}"
116128
117129
git checkout -b $branch
118130
git commit -a -m "$message"

0 commit comments

Comments
 (0)