Skip to content

Commit

Permalink
Merge pull request #41 from sypets/ci-restrict-scheduled-workflow-to-…
Browse files Browse the repository at this point in the history
…main-repo

[TASK] Restrict scheduled CI run to main repo
  • Loading branch information
lochmueller committed Jun 4, 2023
2 parents 92c18d1 + 61b74bc commit 98b4787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- cron: '10 3 * * *'
jobs:
build:
# only run jobs via scheduled workflow in main repo, not in forks
if: (github.event_name == 'schedule' && github.repository == 'lochmueller/calendarize_news') || (github.event_name != 'schedule')
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 98b4787

Please sign in to comment.