Skip to content

Commit 3cce433

Browse files
committed
Update check-restricted-files.yaml
1 parent 03f26ee commit 3cce433

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ jobs:
2020
shell: bash
2121
run: |
2222
# echo base.ref=${{ github.event.pull_request.base.ref }}
23-
[[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && exit 0
23+
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
24+
[[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]]; then
25+
# intra-repo pr
26+
if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
27+
[[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
28+
# sync from main to dev
29+
exit 0
30+
fi
31+
exit 0
32+
fi
2433
2534
echo This PR contains changes to files that should not be changed
2635
exit 1

0 commit comments

Comments
 (0)