Skip to content

Commit e0c8418

Browse files
committed
Update check-restricted-files.yaml
1 parent bf0dc5a commit e0c8418

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,21 @@ jobs:
1919
- name: Check changed files
2020
shell: bash
2121
run: |
22-
# echo base.ref=${{ github.event.pull_request.base.ref }}
2322
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
2423
[[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]]; then
25-
echo Intra-repo PR from ${{ github.event.pull_request.head.ref }} to ${{ github.event.pull_request.base.ref }}
26-
24+
2725
if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
2826
[[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
2927
echo Sync from main to dev
3028
exit 0
3129
fi
3230

31+
if [[ "${{ github.event.pull_request.head.ref }}" == "dev" ]] && \
32+
[[ "${{ github.event.pull_request.base.ref }}" =~ ^v[0-9]+\.[0-9]+-dev$ ]]; then
33+
echo Sync from dev to ${{ github.event.pull_request.base.ref }}
34+
exit 0
35+
fi
36+
3337
if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]] && \
3438
[[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
3539
echo Release from ${{ github.event.pull_request.head.ref }} to main

0 commit comments

Comments
 (0)