Skip to content

Commit d3aa968

Browse files
committed
ci: Unbreak the scorecard workflow (#4605)
* Fix syntax error, other minor touch-ups * Don't run other workflows when only scorecard.yml changes Signed-off-by: Larry Gritz <[email protected]>
1 parent 0d9ff0d commit d3aa968

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.github/workflows/analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
- '!**.rst'
2424
- '!**/ci.yml'
2525
- '!**/docs.yml'
26+
- '!**/scorecard.yml'
2627
- '!**.properties'
2728
- '!docs/**'
2829
# Run analysis on PRs only if the branch name indicates that the purpose of

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- '!**.rst'
1414
- '!**/analysis.yml'
1515
- '!**/docs.yml'
16+
- '!**/scorecard.yml'
1617
- '!**.properties'
1718
- '!docs/**'
1819
pull_request:

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
paths-ignore:
1212
- '**/ci.yml'
1313
- '**/analysis.yml'
14+
- '**/scorecard.yml'
1415
- '**.properties'
1516
- 'src/**.cpp'
1617
- '**.cmake'
@@ -20,6 +21,7 @@ on:
2021
paths-ignore:
2122
- '**/ci.yml'
2223
- '**/analysis.yml'
24+
- '**/scorecard.yml'
2325
- '**.properties'
2426
- 'src/**.cpp'
2527
- '**.cmake'

.github/workflows/scorecard.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ on:
88
# Only the default branch is supported.
99
branch_protection_rule:
1010
push:
11-
# Run on pushes to main, but only the main repo, not forks
11+
# Run on pushes to main, but only the official repo, not forks
1212
branches: [ "main" ]
1313
if: github.event.pull_request.head.repo.full_name == github.repository
14-
paths-ignore:
15-
- '**.md'
16-
- '**.rst'
17-
- 'docs/**'
1814
pull_request:
19-
# Only run on individual PRs if the workflow file itself is changed.
20-
paths-ignore:
21-
- '**.md'
22-
- '**.rst'
23-
- 'docs/**'
15+
# Only run on individual PRs if the workflows changed
16+
paths:
17+
- '.github/workflows/**'
2418

2519
# Declare default permissions as read only.
2620
permissions: read-all
@@ -47,7 +41,7 @@ jobs:
4741

4842
steps:
4943
- name: "Checkout code"
50-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5145
with:
5246
persist-credentials: false
5347
fetch-depth: '0'

0 commit comments

Comments
 (0)