Skip to content

Commit 2bb0553

Browse files
committed
Update check-restricted-files.yaml
1 parent 1cce915 commit 2bb0553

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ jobs:
2222
# echo base.ref=${{ github.event.pull_request.base.ref }}
2323
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
2424
[[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]]; then
25-
echo Intra-repo PR
25+
echo Intra-repo PR from ${{ github.event.pull_request.head.ref }} to ${{ github.event.pull_request.base.ref }}
26+
2627
if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
2728
[[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
2829
echo Sync from main to dev
2930
exit 0
3031
fi
32+
33+
if [[ "${{ github.event.pull_request.head.ref }}" =~ ^"v[0-9]+\.[0-9]+-rel" ]] && \
34+
[[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
35+
echo Release from ${{ github.event.pull_request.head.ref }} to main
36+
exit 0
37+
fi
3138
fi
3239
3340
echo This PR contains changes to files that should not be changed

0 commit comments

Comments
 (0)