ci workflow: skip pull requests from forks on the self-hosted runner
This commit is contained in:
parent
4bf0535af0
commit
882544dfdb
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ jobs:
|
|||
ci:
|
||||
# runner label: ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
||||
runs-on: ubuntu-22.04
|
||||
# the self-hosted runner only runs code from this repo: pull requests from forks are skipped
|
||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue