Skip to content

Commit

Permalink
Only run the validate-snippets.yml workflow when the snippets pro…
Browse files Browse the repository at this point in the history
…ject was changed
  • Loading branch information
MGaetan89 committed Nov 3, 2024
1 parent db58366 commit 41a1c3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "Build website"

on:
merge_group:
pull_request:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint-markdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "Lint Markdown"

on:
merge_group:
pull_request:
push:
branches: [ master ]
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/validate-snippets.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: "Validate snippets"

on:
merge_group:
pull_request:
paths:
- "snippets/**"
push:
branches: [ master ]
paths:
- "snippets/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
validate_snippets:
Expand Down

0 comments on commit 41a1c3c

Please sign in to comment.