Skip to content

Commit 346830e

Browse files
committed
Check precondition in CI on PRs only (#1185)
1 parent 0553d16 commit 346830e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/[email protected]
1313
- name: "Check that author is present in the NOTICE file"
14+
if: github.event_name == 'pull_request'
1415
run: |
1516
AUTHOR=$(git log -1 --format="%aE")
1617
if [ -z "$AUTHOR" ]; then
@@ -23,7 +24,7 @@ jobs:
2324
else
2425
printf "\nOK: Author is present in the NOTICE file.\n";
2526
fi
26-
- name: "If a PR, check that distribution files are unmodified"
27+
- name: "Check that distribution files are unmodified"
2728
if: github.event_name == 'pull_request'
2829
run: |
2930
if git --no-pager diff --name-only $(git rev-parse origin/${{ github.base_ref }})...${{ github.sha }} | grep -q "^dist/"; then

0 commit comments

Comments
 (0)