Skip to content

Commit 2bee511

Browse files
committed
Update GHA YAML with bashbrew example improvements (esp. concurrency:)
1 parent c82d1f7 commit 2bee511

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
@@ -5,13 +5,21 @@ on:
55
push:
66
branches:
77
- master
8+
workflow_dispatch:
89
schedule:
910
- cron: 0 0 * * 0
1011

1112
defaults:
1213
run:
1314
shell: 'bash -Eeuo pipefail -x {0}'
1415

16+
concurrency:
17+
group: ${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
22+
1523
jobs:
1624

1725
generate-jobs:
@@ -28,8 +36,11 @@ jobs:
2836
strategy="$(GENERATE_STACKBREW_LIBRARY='.github/workflows/fake-gsl.sh' "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
2937
strategy="$(.github/workflows/munge-build.sh -c <<<"$strategy")"
3038
strategy="$(.github/workflows/munge-debian-unstable.sh -c <<<"$strategy")"
31-
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
32-
jq . <<<"$strategy" # sanity check / debugging aid
39+
40+
EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
41+
echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
42+
jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
43+
echo "$EOF" >> "$GITHUB_OUTPUT"
3344
3445
test:
3546
needs: generate-jobs

0 commit comments

Comments
 (0)