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 33 push :
44 tags :
55 - ' 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 :
347 goreleaser :
358 runs-on : ubuntu-latest
36- needs : [ check-acceptance-tests-status, run-accettance-tests-workflow ]
37- if : always() && !cancelled() && !failure()
389 steps :
3910 - name : Checkout
4011 uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments