Skip to content

Commit 67047f6

Browse files
committed
Update GitHub Actions
1 parent ec73691 commit 67047f6

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,48 @@ 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:
22+
1423
generate-jobs:
1524
name: Generate Jobs
1625
runs-on: ubuntu-latest
1726
outputs:
1827
strategy: ${{ steps.generate-jobs.outputs.strategy }}
1928
steps:
2029
- uses: actions/checkout@v4
21-
- uses: docker-library/bashbrew@v0.1.13
30+
- uses: docker-library/bashbrew@HEAD
2231
- id: generate-jobs
2332
name: Generate Jobs
2433
run: |
25-
strategy="$(GITHUB_REPOSITORY=postfixadmin "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
26-
strategy="$("$BASHBREW_SCRIPTS/github-actions/munge-i386.sh" -c <<<"$strategy")"
27-
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
28-
jq . <<<"$strategy" # sanity check / debugging aid
34+
strategy="$("$BASHBREW_SCRIPTS/github-actions/generate.sh")"
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

0 commit comments

Comments
 (0)