File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,9 @@ jobs:
106
106
env :
107
107
REPO : ${{ matrix.repository }}
108
108
run : |
109
- workflows="$(ls "REPO/.github/workflows" || echo "" | jq -Rcs 'split("\n")[:-1]')"
109
+ pushd "$REPO" > /dev/null
110
+ workflows="$((ls .github/workflows/* || echo "") | jq -Rcs 'split("\n") | map(select(. != ""))')"
111
+ popd > /dev/null
110
112
eof="EOF$RANDOM"
111
113
echo "json<<$eof" >> $GITHUB_OUTPUT
112
114
jq --argjson workflows "$workflows" '. + { workflows: $workflows }' "$REPO.info" | tee -a $GITHUB_OUTPUT
@@ -121,7 +123,9 @@ jobs:
121
123
name : Get ${{ github.repository }} GitHub info
122
124
working-directory : ${{ github.repository }}
123
125
run : |
124
- workflows="$(ls templates/.github/workflows | jq -Rcs 'split("\n")[:-1]')"
126
+ pushd templates > /dev/null
127
+ workflows="$(ls .github/workflows/* | jq -Rcs 'split("\n") | map(select(. != ""))')"
128
+ popd > /dev/null
125
129
eof="EOF$RANDOM"
126
130
tag="$(git tag --points-at $(git describe --tags --abbrev=0 || true) | sort -V | tail -n-1)"
127
131
echo "json<<$eof" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 3
3
# For more information, see https://github.com/ipdxco/unified-github-workflows
4
4
5
5
# The Unified CI templates which should be distributed to your project.
6
- files : ${{{ .source .workflows - (.github .workflows - .source .workflows) }}}
6
+ files : ${{{ .github .workflows - (.source .workflows - .github .workflows) }}}
You can’t perform that action at this time.
0 commit comments