Skip to content

Commit d39d343

Browse files
committed
move paths filter to pull request trigger
1 parent e0990ee commit d39d343

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/03-triggers.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ on:
88
# Filter patterns cheat sheet:
99
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
1010
- "example-branch/*"
11+
12+
### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
13+
pull_request:
14+
## The default is to trigger on the following types of events:
15+
types:
16+
- opened
17+
- synchronize
18+
- reopened
1119
paths:
1220
# include markdown files
1321
- "02-mechanics-core/filters/*.md"
1422
# Exclude txt files
1523
- "!02-mechanics-core/filters/*.txt"
1624

17-
### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
18-
# pull_request:
19-
### The default is to trigger on the following types of events:
20-
# types:
21-
# - opened
22-
# - synchronize
23-
# - reopened
24-
2525
### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
2626
# schedule:
2727
# - cron: "0 0 * * *" # Midnight UTC

0 commit comments

Comments
 (0)