mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.5] Enhance path filters action to set outputs for all changes when not a PR (#25379)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
co-authored by
Travis Plunk
parent
b7de3c5aea
commit
a873b33b65
@@ -35,6 +35,23 @@ 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);
|
||||
core.setOutput('testsChanged', true);
|
||||
core.setOutput('mainSourceChanged', true);
|
||||
core.setOutput('buildModuleChanged', true);
|
||||
core.setOutput('source', true);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user