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:
@@ -83,7 +83,9 @@ runs:
|
|||||||
|
|
||||||
const buildModuleChanged = files.some(file => file.filename.startsWith('build.psm1'));
|
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('toolsChanged', toolsChanged);
|
||||||
core.setOutput('githubChanged', githubChanged);
|
core.setOutput('githubChanged', githubChanged);
|
||||||
@@ -91,7 +93,9 @@ runs:
|
|||||||
core.setOutput('testsChanged', testsChanged);
|
core.setOutput('testsChanged', testsChanged);
|
||||||
core.setOutput('mainSourceChanged', mainSourceChanged);
|
core.setOutput('mainSourceChanged', mainSourceChanged);
|
||||||
core.setOutput('buildModuleChanged', buildModuleChanged);
|
core.setOutput('buildModuleChanged', buildModuleChanged);
|
||||||
|
core.setOutput('globalConfigChanged', globalConfigChanged);
|
||||||
core.setOutput('source', source);
|
core.setOutput('source', source);
|
||||||
|
|
||||||
|
|
||||||
- name: Capture outputs
|
- name: Capture outputs
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user