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:
19
19
- name : Check changed files
20
20
shell : bash
21
21
run : |
22
- # echo base.ref=${{ github.event.pull_request.base.ref }}
23
22
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
24
23
[[ "${{ 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
+
27
25
if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
28
26
[[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
29
27
echo Sync from main to dev
30
28
exit 0
31
29
fi
32
30
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
+
33
37
if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]] && \
34
38
[[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
35
39
echo Release from ${{ github.event.pull_request.head.ref }} to main
You can’t perform that action at this time.
0 commit comments