We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc4274 commit e53994eCopy full SHA for e53994e
1 file changed
.github/workflows/release.yml
@@ -1,7 +1,11 @@
1
name: Release
2
3
on:
4
- push:
+ workflow_run:
5
+ workflows:
6
+ - CI
7
+ types:
8
+ - completed
9
branches:
10
- main
11
pull_request:
@@ -33,7 +37,7 @@ jobs:
33
37
34
38
semantic-release:
35
39
name: semantic-release
36
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
40
+ if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'
41
permissions:
42
contents: write
43
runs-on: ubuntu-latest
@@ -42,6 +46,7 @@ jobs:
46
uses: actions/checkout@v4
47
with:
44
48
fetch-depth: 0
49
+ ref: ${{ github.event.workflow_run.head_sha }}
45
50
51
- name: Setup uv
52
uses: astral-sh/setup-uv@v5
0 commit comments