Update GHA YAML with bashbrew example improvements (esp. concurrency:)
This commit is contained in:
parent
c82d1f70ee
commit
2bee511641
|
|
@ -5,6 +5,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 0 0 * * 0
|
||||
|
||||
|
|
@ -12,6 +13,13 @@ defaults:
|
|||
run:
|
||||
shell: 'bash -Eeuo pipefail -x {0}'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
generate-jobs:
|
||||
|
|
@ -28,8 +36,11 @@ jobs:
|
|||
strategy="$(GENERATE_STACKBREW_LIBRARY='.github/workflows/fake-gsl.sh' "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
|
||||
strategy="$(.github/workflows/munge-build.sh -c <<<"$strategy")"
|
||||
strategy="$(.github/workflows/munge-debian-unstable.sh -c <<<"$strategy")"
|
||||
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
|
||||
jq . <<<"$strategy" # sanity check / debugging aid
|
||||
|
||||
EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
|
||||
echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
|
||||
jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
|
||||
echo "$EOF" >> "$GITHUB_OUTPUT"
|
||||
|
||||
test:
|
||||
needs: generate-jobs
|
||||
|
|
|
|||
Loading…
Reference in New Issue