File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' v*'
6
- jobs :
7
- # Check that the last run of the acceptance tests was successful
8
- # We run the acceptance tests only if the last run of the sceduled workflow failed
9
- check-acceptance-tests-status :
10
- runs-on : ubuntu-latest
11
- outputs :
12
- acceptance_tests_status : ${{ steps.lastJobStatus.outputs.test }}
13
- steps :
14
- - name : Check last job status
15
- id : lastJobStatus
16
- env :
17
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
- run : |
19
- LAST_JOB_STATUS=$(gh run list --workflow acceptance-tests.yml |grep -oh "completed.*" | grep -h "schedule.*" | head -1 | awk '{print $2}')
20
- echo "acceptanceTestsStatus=${LAST_JOB_STATUS}" >> $GITHUB_OUTPUT
21
- # We run the acceptance tests only if the last run of the sceduled workflow failed
22
- run-accettance-tests-workflow :
23
- needs : [ check-acceptance-tests-status ]
24
- if : ${{ needs.check-acceptance-tests-status.outputs.acceptance_tests_status != 'success'}}
25
- secrets : inherit
26
- permissions :
27
- contents : write
28
- pull-requests : read
29
- repository-projects : read
30
- uses : ./.github/workflows/acceptance-tests.yml
31
- with :
32
- parent-event-name : ' release'
33
- # Release the provider
6
+ jobs :
34
7
goreleaser :
35
8
runs-on : ubuntu-latest
36
- needs : [ check-acceptance-tests-status, run-accettance-tests-workflow ]
37
- if : always() && !cancelled() && !failure()
38
9
steps :
39
10
- name : Checkout
40
11
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments