Skip to content

Commit d1c8fc7

Browse files
committed
Update GHA YAML with bashbrew example improvements (esp. concurrency:)
1 parent dbbdd35 commit d1c8fc7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@ name: GitHub CI
33
on:
44
pull_request:
55
push:
6+
workflow_dispatch:
67
schedule:
78
- cron: 0 0 * * 0
89

910
defaults:
1011
run:
1112
shell: 'bash -Eeuo pipefail -x {0}'
1213

14+
concurrency:
15+
group: ${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
permissions:
19+
contents: read
20+
1321
jobs:
1422

1523
generate-jobs:
@@ -24,8 +32,11 @@ jobs:
2432
name: Generate Jobs
2533
run: |
2634
strategy="$("$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

0 commit comments

Comments
 (0)