Skip to content

Commit 108b681

Browse files
pamolloyorangecms
authored andcommitted
github: Prevent duplicate workflow runs
The push and pull_request actions caused the workflows to be run twice on PRs. Only run on push on the main branch (i.e. when the PR is merged) Signed-off-by: Philip Molloy <philip@philipmolloy.com>
1 parent cb03e64 commit 108b681

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/markdownlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Markdown Lint Action
22
on:
33
push:
4+
branches:
5+
- main
46
pull_request:
57
workflow_dispatch:
68

.github/workflows/vale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Vale Action
22
on:
33
push:
4+
branches:
5+
- main
46
pull_request:
57
workflow_dispatch:
68

0 commit comments

Comments
 (0)