...
1name: 'After-job actions'
2description: >-
3 Perform generic actions that should be performed at the end of every
4 job.
5inputs:
6 jobname:
7 default: ${{ github.job }}
8runs:
9 using: "composite"
10 steps:
11 # collect logs
12 - uses: ./.github/actions/collect-logs
13 if: always()
14 with:
15 jobname: ${{ inputs.jobname }}
16
17 # dirty check
18 - name: "Check that the job didn't change any files"
19 uses: ./.github/actions/git-dirty-check
20 if: ${{ ! failure() }}
21
22 # remote test cluster
23 - run: make ci/teardown-k3d
24 shell: bash
25 if: ${{ ! failure() }}
26
27 # `make clobber`
28 - run: make clobber
29 shell: bash
30 if: ${{ ! failure() }}
31 - name: "Check that `make clobber` didn't change any files"
32 uses: ./.github/actions/git-dirty-check
33 if: ${{ ! failure() }}
34 - name: "Check that `make clobber` did everything it's supposed to"
35 shell: bash
36 run: $GITHUB_ACTION_PATH/check-clobber.sh
37 if: ${{ ! failure() }}
View as plain text