diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 012935fc4..6a6c7a453 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c553bcd40..fdfa5a7f6 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-pdf' + if: github.repository_owner == 'asciidoctor' runs-on: ubuntu-latest steps: - name: Proceed