diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-07-12 23:55:46 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-07-13 01:15:59 -0600 |
| commit | 961b15c0d5852dc6a78553eeb0d5929fd027154d (patch) | |
| tree | 870faa09b4922870df86c1666d835205a68b8a26 /.github | |
| parent | 1b5474868ff29bcd6cc85ec34b8faf426f31bd6c (diff) | |
don't run scheduled build on forks [skip ci]
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ad08b4a..0c17cb2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c22b8d08..c8391fc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: tags: ['v*'] jobs: activate: - if: github.repository == 'asciidoctor/asciidoctor' + if: github.repository_owner == 'asciidoctor' runs-on: ubuntu-latest steps: - name: Proceed |
