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 7c3f185 commit b51fca1Copy full SHA for b51fca1
.github/workflows/check-restricted-files.yaml
@@ -22,8 +22,8 @@ jobs:
22
run: |
23
# TODO: skip if base.ref is main
24
25
- git diff --exit-code --name-only ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }} -- schemas versions
26
- if [[ $? -ne 0 ]]; then
+ 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
echo This PR contains changes to files that should not be changed on ${{ github.event.pull_request.base.ref }}
28
exit 1
29
fi
0 commit comments