From fd18c58c257d16637ea2dacd7a272ce5e0ef8b26 Mon Sep 17 00:00:00 2001 From: kkawula <57270771+kkawula@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:56:36 +0100 Subject: [PATCH] Disable `Scheduled` workflow on forks (#2838) Closes # ## Introduced changes - ## Checklist - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md` --- .github/workflows/scheduled.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 596c5d7449..68cab6cab8 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -11,6 +11,7 @@ on: jobs: get-scarb-versions: + if: "! github.event.repository.fork" name: Get Scarb versions outputs: versions: ${{ steps.get_versions.outputs.versions }} @@ -30,6 +31,7 @@ jobs: echo "versions=[${scarb_versions[@]}]" >> "$GITHUB_OUTPUT" test-forge-unit-and-integration: + if: "! github.event.repository.fork" runs-on: ubuntu-latest needs: get-scarb-versions strategy: @@ -50,6 +52,7 @@ jobs: - run: cargo test --release -p forge integration test-forge-e2e: + if: "! github.event.repository.fork" runs-on: ubuntu-latest needs: get-scarb-versions strategy: @@ -89,6 +92,7 @@ jobs: - run: cargo test --release -p forge e2e test-cast: + if: "! github.event.repository.fork" runs-on: ubuntu-latest needs: get-scarb-versions strategy: