From 0fb079bd852cad3548f8ea8941b01f73f3125c11 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 31 Jan 2024 15:34:03 +0100 Subject: [PATCH] tools: run `build-windows` workflow only on source changes PR-URL: https://github.com/nodejs/node/pull/51596 Reviewed-By: Moshe Atlow Reviewed-By: Marco Ippolito Reviewed-By: Tierney Cyren Reviewed-By: Luigi Pinca Reviewed-By: Yagiz Nizipli --- .github/workflows/build-windows.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index ab61f9b82fa15b..c13830c59ba601 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -2,10 +2,13 @@ name: Build Windows on: pull_request: - paths-ignore: - - README.md - - .github/** - - '!.github/workflows/build-windows.yml' + paths: + - lib/**/*.js + - Makefile + - src/**/*.cc + - src/**/*.h + - tools/gyp/** + - .github/workflows/build-windows.yml types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -13,10 +16,13 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - README.md - - .github/** - - '!.github/workflows/build-windows.yml' + paths: + - lib/**/*.js + - Makefile + - src/**/*.cc + - src/**/*.h + - tools/gyp/** + - .github/workflows/build-windows.yml concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}