We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0553d16 commit 87d1a72Copy full SHA for 87d1a72
.github/workflows/ci.yml
@@ -8,6 +8,7 @@ jobs:
8
check:
9
name: "Check preconditions"
10
runs-on: ubuntu-latest
11
+ if: github.event_name == 'pull_request'
12
steps:
13
- uses: actions/[email protected]
14
- name: "Check that author is present in the NOTICE file"
@@ -23,8 +24,7 @@ jobs:
23
24
else
25
printf "\nOK: Author is present in the NOTICE file.\n";
26
fi
- - name: "If a PR, check that distribution files are unmodified"
27
- if: github.event_name == 'pull_request'
+ - name: "Check that distribution files are unmodified"
28
run: |
29
if git --no-pager diff --name-only $(git rev-parse origin/${{ github.base_ref }})...${{ github.sha }} | grep -q "^dist/"; then
30
printf "\nThe pull request modifies distribution files, but it shouldn't.\n" &&
0 commit comments