-
Notifications
You must be signed in to change notification settings - Fork 5
88 lines (77 loc) · 2.48 KB
/
qa_setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Setup QA environment for PR
on:
pull_request_target:
types: [ labeled, synchronize, unlocked, opened, reopened ]
jobs:
setup_qa1_branch:
if: contains(github.event.pull_request.labels.*.name, 'qa-1')
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
token: ${{ secrets.MIRROR_GITHUB_PAT }}
ref: main
path: main
- name: Checkout head of PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
- name: Create QA branch
run: ./main/.github/scripts/create_qa_branch_for_pr.sh 1 ${{ github.event.number }}
shell: bash
setup_qa2_branch:
if: contains(github.event.pull_request.labels.*.name, 'qa-2')
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
token: ${{ secrets.MIRROR_GITHUB_PAT }}
ref: main
path: main
- name: Checkout head of PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
- name: Create QA branch
run: ./main/.github/scripts/create_qa_branch_for_pr.sh 2 ${{ github.event.number }}
shell: bash
setup_qa3_branch:
if: contains(github.event.pull_request.labels.*.name, 'qa-3')
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
token: ${{ secrets.MIRROR_GITHUB_PAT }}
ref: main
path: main
- name: Checkout head of PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
- name: Create QA branch
run: ./main/.github/scripts/create_qa_branch_for_pr.sh 3 ${{ github.event.number }}
shell: bash
setup_qa4_branch:
if: contains(github.event.pull_request.labels.*.name, 'qa-4')
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
token: ${{ secrets.MIRROR_GITHUB_PAT }}
ref: main
path: main
- name: Checkout head of PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
- name: Create QA branch
run: ./main/.github/scripts/create_qa_branch_for_pr.sh 4 ${{ github.event.number }}
shell: bash