Skip to content

Commit 294224b

Browse files
hanleyyinbmsiegel
authored andcommitted
Set on-release.yml to trigger on release publishing instead of push
Previously, this workflow triggered on a push with any tag. This was causing a weird edge case where workflows that were triggered on a forked branch of the repository with a release cut to it would show up on the parent repo. If we change this workflow to trigger instead on the actual publishing of a release, this behavior should stop. Signed-off-by: HanleyYin <[email protected]>
1 parent 3f8831e commit 294224b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/on-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Release
22
on:
3-
push:
4-
tags:
5-
- "*"
3+
release:
4+
types: [published]
65
workflow_dispatch:
76

87
env:

0 commit comments

Comments
 (0)