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 03f26ee commit 3cce433Copy full SHA for 3cce433
.github/workflows/check-restricted-files.yaml
@@ -20,7 +20,16 @@ jobs:
20
shell: bash
21
run: |
22
# echo base.ref=${{ github.event.pull_request.base.ref }}
23
- [[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && exit 0
+ 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
32
33
34
echo This PR contains changes to files that should not be changed
35
exit 1
0 commit comments