ci: skip fork pull requests on the shared runner

This commit is contained in:
Loki 2026-11-01 15:56:05 +01:00
parent 2936799982
commit a8efb69b7f
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 6 additions and 0 deletions

View file

@ -15,6 +15,8 @@ env:
jobs:
check:
# The runner is a shared host, so never run code from forks on it.
if: ${{ gitea.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name == gitea.repository }}
runs-on: self-hosted
steps:
- uses: actions/checkout@v4