From 4a58cf36710b6a75f6278c5526e8cb68850d53b7 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Fri, 19 Sep 2025 17:42:08 +0700 Subject: [PATCH] CI: update `push.yml` `ignore-paths` to use YAML anchors aliases GitHub Actions now supports YAML anchors and aliases[^1], so the workflows can use them to avoid repeating lists. [^1]: https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations#yaml-anchors-and-aliases Closes #19882 --- .github/workflows/push.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 47001d85bb3..b3dc70d042e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,7 +1,7 @@ name: Push on: push: - paths-ignore: + paths-ignore: &ignore_paths - docs/** - NEWS - UPGRADING @@ -18,16 +18,7 @@ on: - PHP-8.4 - master pull_request: - paths-ignore: - - docs/** - - NEWS - - UPGRADING - - UPGRADING.INTERNALS - - '**/README.*' - - CONTRIBUTING.md - - CODING_STANDARDS.md - - .cirrus.yml - - .circleci/** + paths-ignore: *ignore_paths branches: - '**' workflow_dispatch: ~