File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- push :
4
+ workflow_run :
5
+ workflows : [CI]
6
+ types : [completed]
5
7
branches :
6
8
- main
7
9
- rc
10
+
8
11
workflow_dispatch :
9
12
10
13
permissions :
11
14
contents : read
12
15
13
16
jobs :
14
- check-ci-status :
15
- runs-on : ubuntu-latest
16
- steps :
17
- - name : Wait for CI workflow
18
-
19
- with :
20
- ref : ${{ github.ref }}
21
- check-name : ' CI'
22
- repo-token : ${{ secrets.GITHUB_TOKEN }}
23
- wait-interval : 30
24
-
25
17
release :
26
18
runs-on : ubuntu-latest
27
- if : " !contains(github.event.head_commit.message, 'skip ci')"
28
- needs : [check-ci-status]
19
+ # Remove the problematic conditional since workflow_run events don't have direct access to commit messages
29
20
permissions :
30
21
contents : write
31
22
issues : write
40
31
with :
41
32
app-id : ${{ secrets.APP_ID }}
42
33
private-key : ${{ secrets.PRIVATE_KEY }}
34
+
43
35
- name : Checkout
44
36
uses : actions/checkout@v4
45
37
with :
57
49
run : npm ci
58
50
59
51
- name : Run semantic-release
52
+ id : semantic-release
60
53
run : npx semantic-release
61
54
env :
62
55
GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
56
+ continue-on-error : false
57
+
58
+ - name : Check if release was created
59
+ if : steps.semantic-release.outcome == 'success'
60
+ run : echo "Release created successfully"
You can’t perform that action at this time.
0 commit comments