Skip to content

Commit

Permalink
Merge pull request #4 from creative-commoners/pulls/1.0/forks
Browse files Browse the repository at this point in the history
DOC Only run crons on base account
  • Loading branch information
GuySartorelli authored Jul 5, 2022
2 parents c3007e0 + 3e05baf commit 8ed84e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
jobs:
keepalive:
name: Keepalive
# Only run the cron on the account hosting this repository, not on the accounts of forks
# github.repository take the form of AccountName/repository-name
# Change '<account_name>/' to match the name of the account hosting this repository
if: (github.event_name == 'schedule' && startsWith(github.repository, '<account_name>/')) || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
Expand Down

0 comments on commit 8ed84e0

Please sign in to comment.