ci: skip fork pull requests on the shared runner
This commit is contained in:
parent
2936799982
commit
a8efb69b7f
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue