From 79ad84c5f805ee6440a2484756208f14aba86ff7 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Mon, 27 Jul 2026 13:00:24 -0600 Subject: [PATCH 1/2] fix: skip node setup when rebuild not needed Move rebuild check before setup-node so that when no dependency changes are detected, node setup is skipped entirely. --- .github/workflows/rebuild.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 5e71868..da4eb40 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -17,10 +17,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - name: Setup Node - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 - with: - node-version: 22 - name: Check if rebuild needed id: check run: | @@ -39,6 +35,11 @@ jobs: echo "Dependency changes detected:" echo "$CHANGES" fi + - name: Setup Node + if: steps.check.outputs.skip != 'true' + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 + with: + node-version: 22 - name: Install dependencies if: steps.check.outputs.skip != 'true' run: npm ci From 31ab387c470bbda9ecd4adcb8449a6c929e26ba6 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Mon, 27 Jul 2026 13:02:17 -0600 Subject: [PATCH 2/2] fix: update repository name check after rename The repo was renamed from foundry-sample-url-filtering to foundry-sample-category-blocking but the workflow guard was never updated, so the rebuild never ran. --- .github/workflows/rebuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index da4eb40..3efb45d 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -13,7 +13,7 @@ jobs: contents: write # for peter-evans/create-pull-request to create branch pull-requests: write # for peter-evans/create-pull-request to create a PR name: Rebuild - if: github.repository == 'CrowdStrike/foundry-sample-url-filtering' + if: github.repository == 'CrowdStrike/foundry-sample-category-blocking' runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1