Skip to content

Commit c5545ca

Browse files
committed
ci: Use otelbot token for releases
This is an attempt to get the CI to run automatically on release PRs.
1 parent aa7e0d4 commit c5545ca

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

.github/workflows/release-request-weekly.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ jobs:
1515
uses: ruby/[email protected]
1616
with:
1717
ruby-version: ${{ env.ruby_version }}
18+
1819
- name: Checkout repo
1920
uses: actions/checkout@v4
21+
2022
- name: Install Toys
2123
run: "gem install --no-document toys -v 0.15.5"
24+
25+
- name: Create otelbot token
26+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
27+
id: otelbot-token
28+
with:
29+
app-id: ${{ vars.OTELBOT_APP_ID }}
30+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
31+
2232
- name: Open release pull request
2333
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
2535
run: |
2636
toys release request --yes --verbose \
2737
"--release-ref=${{ github.ref }}" \

.github/workflows/release-request.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,23 @@ jobs:
1919
uses: ruby/[email protected]
2020
with:
2121
ruby-version: ${{ env.ruby_version }}
22+
2223
- name: Checkout repo
2324
uses: actions/checkout@v4
25+
2426
- name: Install Toys
2527
run: "gem install --no-document toys -v 0.15.5"
28+
29+
- name: Create otelbot token
30+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
31+
id: otelbot-token
32+
with:
33+
app-id: ${{ vars.OTELBOT_APP_ID }}
34+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
35+
2636
- name: Open release pull request
2737
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
2939
run: |
3040
toys release request --yes --verbose \
3141
"--gems=${{ github.event.inputs.gems }}" \

.github/workflows/release-retry.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,23 @@ jobs:
2222
uses: ruby/[email protected]
2323
with:
2424
ruby-version: ${{ env.ruby_version }}
25+
2526
- name: Checkout repo
2627
uses: actions/checkout@v4
28+
2729
- name: Install Toys
2830
run: "gem install --no-document toys -v 0.15.5"
31+
32+
- name: Create otelbot token
33+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
34+
id: otelbot-token
35+
with:
36+
app-id: ${{ vars.OTELBOT_APP_ID }}
37+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
38+
2939
- name: Retry release
3040
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
3242
run: |
3343
toys release retry --yes --verbose \
3444
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \

0 commit comments

Comments
 (0)