Skip to content

Commit 546a497

Browse files
author
Dave Bartolomeo
authored
Merge pull request #18563 from mrecachinas/patch-1
Change includes paths in autobuild.sh
2 parents ebb10e3 + 1c9d7b3 commit 546a497

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

actions/extractor/tools/autobuild-impl.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ if (($null -ne $env:LGTM_INDEX_INCLUDE) -or ($null -ne $env:LGTM_INDEX_EXCLUDE)
22
Write-Output 'Path filters set. Passing them through to the JavaScript extractor.'
33
} else {
44
Write-Output 'No path filters set. Using the default filters.'
5+
# Note: We're adding the `reusable_workflows` subdirectories to proactively
6+
# record workflows that were called cross-repo, check them out locally,
7+
# and enable an interprocedural analysis across the workflow files.
8+
# These workflows follow the convention `.github/reusable_workflows/<nwo>/*.ya?ml`
59
$DefaultPathFilters = @(
610
'exclude:**/*',
7-
'include:.github/workflows/**/*.yml',
8-
'include:.github/workflows/**/*.yaml',
11+
'include:.github/workflows/*.yml',
12+
'include:.github/workflows/*.yaml',
13+
'include:.github/reusable_workflows/**/*.yml',
14+
'include:.github/reusable_workflows/**/*.yaml',
915
'include:**/action.yml',
1016
'include:**/action.yaml'
1117
)

actions/extractor/tools/autobuild.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
set -eu
44

5+
# Note: We're adding the `reusable_workflows` subdirectories to proactively
6+
# record workflows that were called cross-repo, check them out locally,
7+
# and enable an interprocedural analysis across the workflow files.
8+
# These workflows follow the convention `.github/reusable_workflows/<nwo>/*.ya?ml`
59
DEFAULT_PATH_FILTERS=$(cat << END
610
exclude:**/*
7-
include:.github/workflows/**/*.yml
8-
include:.github/workflows/**/*.yaml
11+
include:.github/workflows/*.yml
12+
include:.github/workflows/*.yaml
13+
include:.github/reusable_workflows/**/*.yml
14+
include:.github/reusable_workflows/**/*.yaml
915
include:**/action.yml
1016
include:**/action.yaml
1117
END

0 commit comments

Comments
 (0)