Skip to content

Commit dcafdc7

Browse files
committed
test: filter on PR type to avoid conflicting workflow runs
1 parent ccb64a1 commit dcafdc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/secret-manager.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
permissions:
3737
contents: 'read'
3838
id-token: 'write'
39-
if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run'
39+
# Test on PRs when label is applied or on branch PRs. Main check avoids running forked PRs using pull_request event.
40+
if: github.event.label.name == 'actions:force-run' || (github.event.action != 'labeled' && github.head_ref != 'main')
4041
uses: ./.github/workflows/test.yaml
4142
with:
4243
name: 'secret-manager'

0 commit comments

Comments
 (0)