File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -3,28 +3,18 @@ name: Release
33on :
44 push :
55 tags :
6- - ' v*.*.*'
6+ - " v*.*.*"
77
88jobs :
9- check-ci :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Wait for CI to pass
13- id : wait-for-ci
14- uses : fountainhead/action-wait-for-check@5a908a24814494009c4bb27c242ea38c93c593be
15- with :
16- token : ${{ secrets.GITHUB_TOKEN }}
17- checkName : Test
18- ref : ${{ github.sha }}
19- timeoutSeconds : 1800
20-
21- - name : Cancel the release if CI fails
22- if : steps.wait-for-ci.outputs.conclusion == 'failure'
23- run : exit 1
9+ test :
10+ uses : ./.github/workflows/test.yml
11+ secrets : inherit
2412
2513 release :
26- needs : check-ci
2714 runs-on : ubuntu-latest
15+
16+ needs : test
17+
2818 permissions :
2919 id-token : write
3020 contents : read
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ name: CI
22
33on :
44 push :
5+ branches : ["*"]
6+ tags-ignore : ["*"]
57 pull_request :
68 branches : [main]
9+ workflow_call :
710
811jobs :
912 test :
10- name : " Test"
1113 runs-on : ${{ matrix.os }}
1214 strategy :
1315 matrix :
You can’t perform that action at this time.
0 commit comments