Skip to content

Commit 2d0d418

Browse files
Only run 'Lint: json files' for changed .json files AND when it is a … (#30)
…pull_request, because 'github.base_ref' will not be available on push
2 parents 2ec2f74 + faa8646 commit 2d0d418

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-test-measure.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ jobs:
5454
lint-json:
5555
name: 'Lint: .json files'
5656
needs: pre-run
57-
if: needs.pre-run.outputs.changed-json == 'true'
57+
# only run for changed .json files AND when it is a pull_request
58+
# because 'github.base_ref' will not be available on push
59+
if: needs.pre-run.outputs.changed-json == 'true' && github.base_ref == null
5860
runs-on: ubuntu-latest
5961
steps:
6062
- name: Checkout

0 commit comments

Comments
 (0)