Skip to content

Commit e4e39b6

Browse files
committed
Update check-restricted-files.yaml
1 parent 9bb28aa commit e4e39b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/check-restricted-files.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ jobs:
2121
shell: bash
2222
run: |
2323
set +e
24-
25-
# TODO: skip if base.ref is main
2624
27-
git diff --exit-code --name-only ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }} -- schemas versions
25+
# if [[ ${{ github.event.pull_request.base.ref }} == "main" ]]; then
26+
# exit 0
27+
# fi
28+
29+
git diff --exit-code --name-only ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }} \
30+
-- schemas versions
2831
if [[ $? -ne 0 ]]; then
2932
echo This PR contains changes to files that should not be changed on ${{ github.event.pull_request.base.ref }}
3033
exit 1

0 commit comments

Comments
 (0)