Skip to content

Commit 916dec2

Browse files
fix: release only after swift workflow succeed
1 parent 1a88597 commit 916dec2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Release
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["Swift"]
6+
types:
7+
- completed
58
branches: [ "main" ]
69

710
jobs:
811
release:
912
runs-on: ubuntu-latest
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1014
permissions:
1115
contents: write
1216
steps:

0 commit comments

Comments
 (0)