Skip to content

Commit fd18c58

Browse files
authored
Disable Scheduled workflow on forks (#2838)
<!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [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`
1 parent 079563e commit fd18c58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/scheduled.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
get-scarb-versions:
14+
if: "! github.event.repository.fork"
1415
name: Get Scarb versions
1516
outputs:
1617
versions: ${{ steps.get_versions.outputs.versions }}
@@ -30,6 +31,7 @@ jobs:
3031
echo "versions=[${scarb_versions[@]}]" >> "$GITHUB_OUTPUT"
3132
3233
test-forge-unit-and-integration:
34+
if: "! github.event.repository.fork"
3335
runs-on: ubuntu-latest
3436
needs: get-scarb-versions
3537
strategy:
@@ -50,6 +52,7 @@ jobs:
5052
- run: cargo test --release -p forge integration
5153

5254
test-forge-e2e:
55+
if: "! github.event.repository.fork"
5356
runs-on: ubuntu-latest
5457
needs: get-scarb-versions
5558
strategy:
@@ -89,6 +92,7 @@ jobs:
8992
- run: cargo test --release -p forge e2e
9093

9194
test-cast:
95+
if: "! github.event.repository.fork"
9296
runs-on: ubuntu-latest
9397
needs: get-scarb-versions
9498
strategy:

0 commit comments

Comments
 (0)