Skip to content

Commit

Permalink
don't run scheduled build on forks [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jul 13, 2021
1 parent c4872a6 commit a6ab44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
- cron: '0 2 * * *'
jobs:
activate:
if: "!endsWith(github.event.head_commit.message, '[skip ci]')"
if: |
(github.event_name == 'schedule' && github.repository_owner == 'asciidoctor') ||
(github.event_name != 'schedule' && !endsWith(github.event.head_commit.message, '[skip ci]'))
runs-on: ubuntu-latest
steps:
- name: Proceed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags: ['v*']
jobs:
activate:
if: github.repository == 'asciidoctor/asciidoctor-pdf'
if: github.repository_owner == 'asciidoctor'
runs-on: ubuntu-latest
steps:
- name: Proceed
Expand Down

0 comments on commit a6ab44d

Please sign in to comment.