File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments