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 b51fca1 commit 9bb28aaCopy full SHA for 9bb28aa
.github/workflows/check-restricted-files.yaml
@@ -20,10 +20,12 @@ jobs:
20
- name: Check changed files
21
shell: bash
22
run: |
23
+ set +e
24
+
25
# TODO: skip if base.ref is main
26
- changes = $(git diff --exit-code --name-only ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }} -- schemas versions)
- if [[ $changes -ne 0 ]]; then
27
+ git diff --exit-code --name-only ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }} -- schemas versions
28
+ if [[ $? -ne 0 ]]; then
29
echo This PR contains changes to files that should not be changed on ${{ github.event.pull_request.base.ref }}
30
exit 1
31
fi
0 commit comments