From 59d1d44a1ff804785abf1408da67c18a47a26d0f Mon Sep 17 00:00:00 2001 From: Alan Cooney <41682961+alan-cooney@users.noreply.github.com> Date: Sun, 22 Oct 2023 22:00:48 +0800 Subject: [PATCH] Run if self has changed --- .github/workflows/checks.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3486e17b7..1a4e35ccd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -4,21 +4,25 @@ on: push: branches: - main - paths-ignore: - - '.devcontainer/**' - - '.github/**' - - '.vscode/**' - - '.gitignore' - - '*.md' + paths: + - '**' # Include all files by default + - '!.devcontainer/**' + - '!.vscode/**' + - '!.git*' + - '!*.md' + - '!.github/**' + - '.github/workflows/checks.yml' # Still include current workflow pull_request: branches: - main - paths-ignore: - - '.devcontainer/**' - - '.github/**' - - '.vscode/**' - - '.gitignore' - - '*.md' + paths: + - '**' + - '!.devcontainer/**' + - '!.vscode/**' + - '!.git*' + - '!*.md' + - '!.github/**' + - '.github/workflows/checks.yml' # Allow this workflow to be called from other workflows workflow_call: inputs: