ci workflow: skip pull requests from forks on the self-hosted runner

This commit is contained in:
CRTkafa 2026-10-11 06:18:42 +08:00
parent 0b52c4ab40
commit b4e219a5e2

View file

@ -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