We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f43c1 commit 674b064Copy full SHA for 674b064
.github/workflows/release.yml
@@ -1,15 +1,16 @@
1
name: Release
2
"on":
3
- push:
+ workflow_run:
4
+ workflows: ["Tests"]
5
+ types:
6
+ - completed
7
branches:
8
- main
- - next
- - beta
- - "*.x"
9
permissions:
10
contents: read # for checkout
11
jobs:
12
release:
13
+ if: github.event.workflow_run.conclusion == 'success'
14
15
contents: write # to be able to publish a GitHub release
16
issues: write # to be able to comment on released issues
@@ -22,6 +23,7 @@ jobs:
22
23
- name: Checkout
24
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
25
with:
26
+ ref: ${{ github.event.workflow_run.head_sha }}
27
persist-credentials: false
28
- name: Semantic Release
29
id: semantic
0 commit comments