From 5b192ebf899e11248eb3ce6aeb50df2a23672378 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 14 Oct 2022 20:06:39 -0600 Subject: don't run CI on PR that originates from a branch that starts with docs/ --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f78111b1..88788333 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,8 @@ jobs: activate: if: | (github.event_name == 'schedule' && github.repository_owner == 'asciidoctor') || - (github.event_name != 'schedule' && !endsWith(github.event.head_commit.message, '[skip ci]')) + github.event_name == 'push' || github.event_name == 'workflow_dispatch' || + (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'docs/')) runs-on: ubuntu-latest steps: - name: Proceed -- cgit v1.2.3