File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,48 @@ name: GitHub CI
33on :
44 pull_request :
55 push :
6+ workflow_dispatch :
67 schedule :
78 - cron : 0 0 * * 0
8- workflow_dispatch :
99
1010defaults :
1111 run :
1212 shell : ' bash -Eeuo pipefail -x {0}'
1313
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
18+ permissions :
19+ contents : read
20+
1421jobs :
22+
1523 generate-jobs :
1624 name : Generate Jobs
1725 runs-on : ubuntu-latest
1826 outputs :
1927 strategy : ${{ steps.generate-jobs.outputs.strategy }}
2028 steps :
21- - uses : actions/checkout@v3
22- - uses : docker-library/bashbrew@v0.1.5
29+ - uses : actions/checkout@v4
30+ - uses : docker-library/bashbrew@HEAD
2331 - id : generate-jobs
2432 name : Generate Jobs
2533 run : |
2634 strategy="$(GITHUB_REPOSITORY=satosa "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
27- echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
28- jq . <<<"$strategy" # sanity check / debugging aid
35+
36+ EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
37+ echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
38+ jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
39+ echo "$EOF" >> "$GITHUB_OUTPUT"
2940
3041 test :
3142 needs : generate-jobs
3243 strategy : ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
3344 name : ${{ matrix.name }}
3445 runs-on : ${{ matrix.os }}
3546 steps :
36- - uses : actions/checkout@v3
47+ - uses : actions/checkout@v4
3748 - name : Prepare Environment
3849 run : ${{ matrix.runs.prepare }}
3950 - name : Pull Dependencies
You can’t perform that action at this time.
0 commit comments