Skip to content

Commit 3e4e9a2

Browse files
authored
Only notify clio for PRs targeting the release and master branches (#5794)
Clio should only be notified when releases are about to be made, instead of for all PR, so this change only notifies Clio when a PR targets the release or master branch.
1 parent 4caebfb commit 3e4e9a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
needs:
112112
- should-run
113113
- build-test
114-
if: ${{ needs.should-run.outputs.go == 'true' }}
114+
if: ${{ needs.should-run.outputs.go == 'true' && contains(fromJSON('["release", "master"]'), github.ref_name) }}
115115
uses: ./.github/workflows/notify-clio.yml
116116
secrets:
117117
clio_notify_token: ${{ secrets.CLIO_NOTIFY_TOKEN }}

0 commit comments

Comments
 (0)