Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Limit cron-scheduled Github Actions to run jobs only on main repository (#18315)

Tomasz Magulskie95b19d0e9bd
diff --git a/.github/workflows/bump-dependencies.yml b/.github/workflows/bump-dependencies.yml
index b9c18ded72..52a5f1a06e 100644
--- a/.github/workflows/bump-dependencies.yml
+++ b/.github/workflows/bump-dependencies.yml
@@ -7,6 +7,7 @@ on:
jobs:
bump-dependencies:
+ if: ${{ github.event_name != 'schedule' || github.repository == 'saleor/saleor' }}
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 30803b4f45..e1c14949a6 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -21,6 +21,7 @@ env:
jobs:
e2e-tests:
+ if: ${{ github.event_name != 'schedule' || github.repository == 'saleor/saleor' }}
runs-on: ubuntu-22.04
container: python:3.12
name: Run E2E tests
diff --git a/.github/workflows/test-env-cleanup-cron.yml b/.github/workflows/test-env-cleanup-cron.yml
index 2eeaf8242c..06d2f7c7c2 100644
--- a/.github/workflows/test-env-cleanup-cron.yml
+++ b/.github/workflows/test-env-cleanup-cron.yml
@@ -8,6 +8,7 @@ on:
jobs:
cleanup:
+ if: ${{ github.event_name != 'schedule' || github.repository == 'saleor/saleor' }}
name: Remove stale test env deployments
runs-on: ubuntu-latest
permissions: