11---
2- name : 🚦 CI / Test Container Build
2+ # Managed by modulesync - DO NOT EDIT
3+ # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
34
5+ name : 🚦 CI
6+
7+ # yamllint disable-line rule:truthy
48on :
59 pull_request :
610 branches :
711 - main
812 workflow_dispatch :
913
14+ concurrency :
15+ group : ci-${{ github.event.pull_request.number || github.ref }}
16+ cancel-in-progress : true
17+
1018permissions :
1119 contents : read
1220
1321jobs :
14- build_test_container :
15- name : ' Build Test Container '
22+ build-container :
23+ name : Build test container
1624 runs-on : ubuntu-latest
1725 permissions :
1826 actions : read
@@ -24,35 +32,35 @@ jobs:
2432 - name : Build image
2533 uses : docker/build-push-action@v7
2634 with :
35+ context : .
2736 file : Containerfile
28- tags : ' ci/semantic-release:${{ github.event.number }}'
37+ tags : ' ci/semantic-release:${{ github.sha }}'
2938 push : false
3039
3140 tests :
32- needs :
33- - build_test_container
34- runs-on : ubuntu-latest
3541 name : Test suite
42+ if : always()
43+ needs :
44+ - build-container
45+ runs-on : ubuntu-24.04
3646 steps :
37- - run : echo Test suite completed
47+ - name : Verify required jobs
48+ uses : re-actors/alls-green@release/v1
49+ with :
50+ jobs : ${{ toJSON(needs) }}
3851
3952 dependabot :
40- permissions :
41- contents : write
42- name : ' Dependabot auto-merge'
53+ name : Dependabot auto-merge
54+ if : github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
4355 needs :
4456 - tests
4557 runs-on : ubuntu-latest
46- if : ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
58+ permissions :
59+ contents : write
60+ pull-requests : write
4761 steps :
48- - name : Dependabot metadata
49- id : metadata
50- uses : dependabot/fetch-metadata@v3.1.0
51- with :
52- github-token : ' ${{ secrets.GITHUB_TOKEN }}'
53-
54- - name : Enable auto-merge for Dependabot PRs
55- run : gh pr merge --auto --merge "$PR_URL"
62+ - name : Enable auto-merge for Dependabot PR
5663 env :
57- PR_URL : ${{github.event.pull_request.html_url}}
58- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
64+ GH_TOKEN : ${{ github.token }}
65+ PR_URL : ${{ github.event.pull_request.html_url }}
66+ run : gh pr merge --auto --merge "$PR_URL"
0 commit comments