ci workflow: skip pull requests from forks on the self-hosted runner
This commit is contained in:
parent
0b52c4ab40
commit
b4e219a5e2
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
ci:
|
ci:
|
||||||
# runner label: ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
# runner label: ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04
|
||||||
runs-on: ubuntu-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
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue