1
0
mirror of https://github.com/PowerShell/PowerShell synced 2025-10-06 00:22:59 +02:00

Add global config change detection to action (#26082)

This commit is contained in:
Travis Plunk
2025-09-23 10:59:18 -07:00
committed by GitHub
parent 551a0fe642
commit 01e1e2269a

View File

@@ -83,7 +83,9 @@ runs:
const buildModuleChanged = files.some(file => file.filename.startsWith('build.psm1'));
const source = mainSourceChanged || toolsChanged || githubChanged || propsChanged || testsChanged;
const globalConfigChanged = files.some(file => file.filename.startsWith('.globalconfig')) || files.some(file => file.filename.startsWith('nuget.config')) || files.some(file => file.filename.startsWith('global.json'));
const source = mainSourceChanged || toolsChanged || githubChanged || propsChanged || testsChanged || globalConfigChanged;
core.setOutput('toolsChanged', toolsChanged);
core.setOutput('githubChanged', githubChanged);
@@ -91,8 +93,10 @@ runs:
core.setOutput('testsChanged', testsChanged);
core.setOutput('mainSourceChanged', mainSourceChanged);
core.setOutput('buildModuleChanged', buildModuleChanged);
core.setOutput('globalConfigChanged', globalConfigChanged);
core.setOutput('source', source);
- name: Capture outputs
run: |
Write-Verbose -Verbose "source: ${{ steps.filter.outputs.source }}"