Skip to content

Commit b113612

Browse files
authored
More otelbot (open-telemetry#5931)
1 parent fbbce6e commit b113612

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.github/workflows/move-to-emeritus.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,31 @@ jobs:
1010
create-or-update-emeritus-pr:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Fork
14-
run: gh repo fork open-telemetry/opentelemetry-js
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
1713
- name: Checkout
1814
uses: actions/checkout@v5
19-
with:
20-
repository: opentelemetrybot/opentelemetry-js
21-
ref: main
22-
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
23-
- name: Sync with upstream
24-
run: |
25-
git remote show origin
26-
git remote add upstream https://github.com/open-telemetry/opentelemetry-js.git
27-
git fetch upstream
28-
git reset --hard upstream/main
29-
git push origin main --force
3015

3116
- uses: actions/setup-node@v4
3217
with:
3318
cache: 'npm'
3419
cache-dependency-path: package-lock.json
3520
node-version: 22
3621

22+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
23+
id: otelbot-token
24+
with:
25+
app-id: ${{ vars.OTELBOT_APP_ID }}
26+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
27+
3728
- run: node scripts/move-to-emeritus.js
3829

3930
- name: Create/Update Move to Emeritus PR
4031
run: |
41-
git config user.name opentelemetrybot
42-
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
32+
git config user.name otelbot
33+
git config user.email 197425009+otelbot@users.noreply.github.com
4334
git checkout -b chore/move-inactive-to-emeritus
4435
git add README.md
4536
git commit -m "chore: move inactive members to emeritus"
46-
git push --set-upstream $PR_REMOTE chore/move-inactive-to-emeritus --force
47-
gh pr create --repo open-telemetry/opentelemetry-js --title 'chore: move inactive members to emeritus' --body-file ./.tmp/emeritus-pr-body.md || gh pr edit --repo open-telemetry/opentelemetry-js $PR_OWNER:chore/move-inactive-to-emeritus --body-file ./.tmp/emeritus-pr-body.md
37+
git push --set-upstream origin otelbot/move-inactive-to-emeritus --force
38+
gh pr create --title 'chore: move inactive members to emeritus' --body-file ./.tmp/emeritus-pr-body.md || gh pr edit otelbot/move-inactive-to-emeritus --body-file ./.tmp/emeritus-pr-body.md
4839
env:
49-
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
50-
PR_REMOTE: origin
51-
PR_OWNER: opentelemetrybot
40+
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}

0 commit comments

Comments
 (0)