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