Skip to content

Commit 4ef72d5

Browse files
committed
Add dependency to other workflow to run
1 parent a5206d8 commit 4ef72d5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ on:
33
push:
44
tags:
55
- v*
6+
# Also trigger when auto-release workflow completes successfully
7+
workflow_run:
8+
workflows: ["Auto Release"]
9+
types:
10+
- completed
11+
branches:
12+
- main
613

714
permissions:
815
contents: write
@@ -11,6 +18,8 @@ jobs:
1118
goreleaser:
1219
name: Release
1320
runs-on: ubuntu-latest
21+
# Only run if the triggering workflow succeeded (meaning a tag was created)
22+
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'push'
1423
steps:
1524
- name: Checkout
1625
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

0 commit comments

Comments
 (0)