From 6b916abebecd32c8baad9432b26bccdef4a4abab Mon Sep 17 00:00:00 2001 From: andy5995 Date: Mon, 4 Aug 2025 13:41:57 -0500 Subject: [PATCH] CI: Use YAML aliases for path filters A new feature added to Github workflows: https://github.com/actions/runner/issues/1182 --- .github/workflows/linux-old.yml | 12 ++---------- .github/workflows/linux.yml | 12 ++---------- .github/workflows/macos.yml | 12 ++---------- 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/.github/workflows/linux-old.yml b/.github/workflows/linux-old.yml index 5b8f92f03b..99d7a7da77 100644 --- a/.github/workflows/linux-old.yml +++ b/.github/workflows/linux-old.yml @@ -23,7 +23,7 @@ name: 'Old Linux' branches: - master - '*/ci' - paths-ignore: + paths-ignore: &shared_paths - '**/*.md' - '.circleci/**' - 'appveyor.*' @@ -35,15 +35,7 @@ name: 'Old Linux' pull_request: branches: - master - paths-ignore: - - '**/*.md' - - '.circleci/**' - - 'appveyor.*' - - 'Dockerfile' - - 'packages/**' - - 'plan9/**' - - 'projects/**' - - 'winbuild/**' + paths-ignore: *shared_paths permissions: {} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index be0468ff8d..a38156e371 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,7 +9,7 @@ name: 'Linux' branches: - master - '*/ci' - paths-ignore: + paths-ignore: &shared_paths - '**/*.md' - '.circleci/**' - 'appveyor.*' @@ -21,15 +21,7 @@ name: 'Linux' pull_request: branches: - master - paths-ignore: - - '**/*.md' - - '.circleci/**' - - 'appveyor.*' - - 'Dockerfile' - - 'packages/**' - - 'plan9/**' - - 'projects/**' - - 'winbuild/**' + paths-ignore: *shared_paths concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index cdb6de2834..dc364628e6 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -9,7 +9,7 @@ name: 'macOS' branches: - master - '*/ci' - paths-ignore: + paths-ignore: &shared_paths - '**/*.md' - '.circleci/**' - 'appveyor.*' @@ -21,15 +21,7 @@ name: 'macOS' pull_request: branches: - master - paths-ignore: - - '**/*.md' - - '.circleci/**' - - 'appveyor.*' - - 'Dockerfile' - - 'packages/**' - - 'plan9/**' - - 'projects/**' - - 'winbuild/**' + paths-ignore: *shared_paths concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}