Skip to content

Commit

Permalink
ci: Use Org OTel Bot Token
Browse files Browse the repository at this point in the history
The Org Level OTel Bot Token likely a PAT, which will allow PRs opened by GH actions to trigger
subsequent actions workflows.

This will fix the problem where CI jobs do not run when the bot opens a PR for release requests.
  • Loading branch information
arielvalentin authored Dec 27, 2023
1 parent 562f649 commit 02509b6
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-hook-on-closed.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:
run: "gem install --no-document toys -v 0.15.3"
- name: Process release request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
toys release _onclosed --verbose \
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \
2 changes: 1 addition & 1 deletion .github/workflows/release-hook-on-push.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
run: "gem install --no-document toys -v 0.15.3"
- name: Update open releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
toys release _onpush --verbose \
< /dev/null
2 changes: 1 addition & 1 deletion .github/workflows/release-perform.yml
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ jobs:
run: "gem install --no-document toys -v 0.15.3"
- name: Perform release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
toys release perform --yes --verbose \
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \
2 changes: 2 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@ jobs:
steps:
- uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e
id: release
with:
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
2 changes: 1 addition & 1 deletion .github/workflows/release-request.yml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ jobs:
run: "gem install --no-document toys -v 0.15.3"
- name: Open release pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
toys release request --yes --verbose \
"--gems=${{ github.event.inputs.gems }}" \
2 changes: 1 addition & 1 deletion .github/workflows/release-retry.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:
run: "gem install --no-document toys -v 0.15.3"
- name: Retry release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
toys release retry --yes --verbose \
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \
2 changes: 1 addition & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
- uses: actions/stale@v9
name: Clean up stale issues and PRs
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
stale-issue-message: "👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the `keep` label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot."
stale-issue-label: "stale"
exempt-issue-labels: "keep"

0 comments on commit 02509b6

Please sign in to comment.