Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Skip scheduled workflow runs in forks. (#8406)

Andrey Rakhmatullinabd343c17777
diff --git a/.github/workflows/close-spam-prs.yml b/.github/workflows/close-spam-prs.yml
index 68aa151cf..68e6cc931 100644
--- a/.github/workflows/close-spam-prs.yml
+++ b/.github/workflows/close-spam-prs.yml
@@ -10,6 +10,7 @@ permissions:
pull-requests: write
jobs:
unattended-pr-guard:
+ if: github.event_name != 'schedule' || github.repository == 'scrapy/scrapy'
runs-on: ubuntu-latest
steps:
- uses: scrapy/unattended-pr-guard@2ea7eff575dd0912d03cf3e3ae7acf65052c6445 # 0.2.0
diff --git a/.github/workflows/tests-vcs-deps.yml b/.github/workflows/tests-vcs-deps.yml
index 0a8fc94fe..6f3aca5e6 100644
--- a/.github/workflows/tests-vcs-deps.yml
+++ b/.github/workflows/tests-vcs-deps.yml
@@ -15,6 +15,7 @@ concurrency:
jobs:
tests:
name: tests
+ if: github.event_name != 'schedule' || github.repository == 'scrapy/scrapy'
runs-on: ubuntu-latest
timeout-minutes: 30
env: