Skip to content

Commit 7a81eb7

Browse files
authored
ci: prevent duplicate runs for Pull Requests (#9036)
* ci: prevent duplicate ci runs for PRs the real fix here was specifying which branches should trigger the "push" event, but prevent duplicate runs for Pull Requests (cherry picked from commit 5ebc319581cff9039b42ec107dbf4690b697eb39) * chore: add changeset * ci: add "ready_for_review" to pr types adding ready_for_review makes it so actions are run when converting a PR from a draft to a normal PR in order to add additional types you also need to pass the default Signed-off-by: Logan McAnsh <[email protected]>
1 parent d5b2560 commit 7a81eb7

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.changeset/four-lobsters-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
---
4+
5+
ci: prevent duplicate runs for Pull Requests

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
name: test
2+
23
on:
34
push:
45
branches:
5-
- "**"
6+
- main
7+
- dev
68
tags-ignore:
79
- v*
810
paths-ignore:
911
- "docs/**"
1012
- "**/README.md"
1113
pull_request:
12-
types: [opened, synchronize]
14+
types:
15+
- opened
16+
- reopened
17+
- synchronize
18+
- ready_for_review
19+
paths-ignore:
20+
- "docs/**"
21+
- "**/*.md"
1322

1423
jobs:
1524
test:

0 commit comments

Comments
 (0)