Skip to content

Commit

Permalink
Add necessary permissions/tokens for "lewagon/wait-on-check-action" s…
Browse files Browse the repository at this point in the history
…o it can run nightly (commaai#30923)
  • Loading branch information
nelsonjchen authored Jan 7, 2024
1 parent 073fc89 commit 2a49f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/prebuilt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
if: github.repository == 'commaai/openpilot'
env:
PUSH_IMAGE: true
permissions:
checks: read
steps:
- name: Wait for green check mark
if: ${{ github.event_name != 'workflow_dispatch' }}
Expand All @@ -23,6 +25,7 @@ jobs:
ref: master
wait-interval: 30
running-workflow-name: 'build prebuilt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: ^((?!.*(build master-ci).*).)*$
- uses: actions/checkout@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
image: ghcr.io/commaai/openpilot-base:latest
runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot'
permissions:
checks: read
steps:
- name: Install wait-on-check-action dependencies
run: |
Expand All @@ -26,6 +28,7 @@ jobs:
ref: master
wait-interval: 30
running-workflow-name: 'build master-ci'
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: ^((?!.*(build prebuilt).*).)*$
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 2a49f94

Please sign in to comment.