Skip to content

Commit 1cd9e23

Browse files
committed
GH Actions: stop scheduled workflows running on forks
1 parent 9862356 commit 1cd9e23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/branch_sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
jobs:
1616
sync:
17+
if: github.repository_owner == 'cylc' || github.event_name != 'schedule'
1718
uses: cylc/release-actions/.github/workflows/branch-sync.yml@v1
1819
with:
1920
head_branch: ${{ inputs.head_branch }}

.github/workflows/test_conda-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515

1616
jobs:
1717
test_conda_install:
18+
if: github.repository_owner == 'cylc' || github.event_name != 'schedule'
1819
runs-on: ubuntu-latest
1920
timeout-minutes: 10
2021
steps:

0 commit comments

Comments
 (0)