From 8d2ab400d241c06abe8dc862ef7945e675910a01 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 16 Apr 2025 12:03:14 -0700 Subject: [PATCH 1/2] Enhance path filters action to set outputs for all changes when not a PR --- .../actions/infrastructure/path-filters/action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/infrastructure/path-filters/action.yml b/.github/actions/infrastructure/path-filters/action.yml index 58255fab55c..dc0181167a9 100644 --- a/.github/actions/infrastructure/path-filters/action.yml +++ b/.github/actions/infrastructure/path-filters/action.yml @@ -35,6 +35,18 @@ runs: with: github-token: ${{ inputs.GITHUB_TOKEN }} script: | + // Just say everything changed if this is not a PR + if (context.eventName !== 'pull_request') { + core.setOutput('toolsChanged', true); + core.setOutput('githubChanged', true); + core.setOutput('propsChanged', true); + core.setOutput('testsChanged', true); + core.setOutput('mainSourceChanged', true); + core.setOutput('buildModuleChanged', true); + core.setOutput('source', true); + return; + } + // Fetch the list of files changed in the PR let files = []; let page = 1; From 368c0ce9a01bfebde8dff78624d08dd7921c0015 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 16 Apr 2025 12:11:05 -0700 Subject: [PATCH 2/2] Add logging for event name and output settings in path filters action --- .github/actions/infrastructure/path-filters/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/infrastructure/path-filters/action.yml b/.github/actions/infrastructure/path-filters/action.yml index dc0181167a9..78426bdff03 100644 --- a/.github/actions/infrastructure/path-filters/action.yml +++ b/.github/actions/infrastructure/path-filters/action.yml @@ -35,8 +35,11 @@ runs: with: github-token: ${{ inputs.GITHUB_TOKEN }} script: | + console.log(`Event Name: ${context.eventName}`); + // Just say everything changed if this is not a PR if (context.eventName !== 'pull_request') { + console.log('Not a pull request, setting all outputs to true'); core.setOutput('toolsChanged', true); core.setOutput('githubChanged', true); core.setOutput('propsChanged', true); @@ -47,6 +50,8 @@ runs: return; } + console.log(`Getting files changed in PR #${context.issue.number}`); + // Fetch the list of files changed in the PR let files = []; let page = 1;