File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 18
18
- name : Check changed files
19
19
shell : bash
20
20
run : |
21
+ if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
22
+ [[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]]; then
23
+
24
+ if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
25
+ [[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
26
+ echo Sync from main to dev
27
+ exit 0
28
+ fi
29
+
30
+ if [[ "${{ github.event.pull_request.head.ref }}" == "dev" ]] && \
31
+ [[ "${{ github.event.pull_request.base.ref }}" =~ ^v[0-9]+\.[0-9]+-dev$ ]]; then
32
+ echo Sync from dev to ${{ github.event.pull_request.base.ref }}
33
+ exit 0
34
+ fi
35
+
36
+ if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]] && \
37
+ [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
38
+ echo Release from ${{ github.event.pull_request.head.ref }} to main
39
+ exit 0
40
+ fi
41
+ fi
42
+
21
43
echo This PR contains changes to files that should not be changed
22
44
exit 1
You can’t perform that action at this time.
0 commit comments