[mod] ci: exclude some workflows from forks (#4849)

Excludes some workflows/jobs unneeded on forks.

Closes https://github.com/searxng/searxng/issues/4847
This commit is contained in:
Ivan Gabaldon
2025-05-25 14:54:27 +02:00
committed by GitHub
parent 848c8d0544
commit 14b8a999f3
3 changed files with 14 additions and 8 deletions

View File

@@ -16,6 +16,8 @@ permissions:
jobs:
container-cache:
# FIXME: On forks it fails with "Failed to fetch packages: missing field `id` at line 1 column 141"
if: github.repository_owner == 'searxng' || github.event_name == 'workflow_dispatch'
name: Container cache
runs-on: ubuntu-24.04
permissions: