Skip to content

Commit c2626c0

Browse files
committed
Prevent workflows from running on doc-only changes
1 parent f82718c commit c2626c0

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- main
10+
paths-ignore:
11+
- '**/*.md'
1012
workflow_dispatch:
1113
merge_group:
1214
release:
@@ -25,7 +27,7 @@ jobs:
2527
runs-on: [ubuntu-latest]
2628
steps:
2729
- name: Harden the runner (Audit all outbound calls)
28-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
30+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
2931
with:
3032
egress-policy: audit
3133

@@ -122,7 +124,7 @@ jobs:
122124
- darwin-arm64
123125
steps:
124126
- name: Harden the runner (Audit all outbound calls)
125-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
127+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
126128
with:
127129
egress-policy: audit
128130

@@ -175,7 +177,7 @@ jobs:
175177
contents: write # for softprops/action-gh-release to create a GitHub release
176178
steps:
177179
- name: Harden the runner (Audit all outbound calls)
178-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
180+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
179181
with:
180182
egress-policy: audit
181183

@@ -185,6 +187,6 @@ jobs:
185187
pattern: vsix-package-*
186188

187189
- name: Attach packages
188-
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
190+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
189191
with:
190192
files: "**/*.vsix"

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths-ignore:
8+
- '**/*.md'
79
push:
810
branches:
911
- main
12+
paths-ignore:
13+
- '**/*.md'
1014

1115
permissions:
1216
contents: read

.github/workflows/dependency-review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: 'Dependency Review'
2-
on: [pull_request]
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- '**/*.md'
36

47
permissions:
58
contents: read
@@ -15,5 +18,6 @@ jobs:
1518

1619
- name: 'Checkout Repository'
1720
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
1822
- name: 'Dependency Review'
1923
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

.github/workflows/scorecard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- cron: '0 0 * * *'
1111
push:
1212
branches: [ "main" ]
13+
paths-ignore:
14+
- '**/*.md'
1315

1416
permissions:
1517
contents: read

.github/workflows/tpip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
- docs/third-party-licenses.json
88
- docs/tpip-header.md
99
- scripts/tpip-reporter.ts
10+
- '!**/*.md'
1011
branches:
1112
- main
12-
1313
workflow_dispatch:
1414

1515
concurrency:

0 commit comments

Comments
 (0)