-
Notifications
You must be signed in to change notification settings - Fork 29
30 lines (29 loc) · 1.25 KB
/
integration-tests.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
name: "Trigger Integration tests"
on:
pull_request_target:
types: [labeled, opened]
branches:
- main
- 'releases/*'
jobs:
trigger-integration-tests:
name: Trigger Integration tests
if: startsWith(github.event.pull_request.head.label, format('{0}:',github.repository_owner)) || contains(github.event.pull_request.labels.*.name, 'run-tests')
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
path: IntegrationTests
- name: Trigger Test run
env:
token: ${{ secrets.L2_REPO_TOKEN }}
commit: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.repository }}
prnumber: ${{ github.event.pull_request.number }}
prsource: ${{ github.event.pull_request.head.ref }}
prtarget: ${{ github.event.pull_request.base.ref }}
username: ${{ secrets.L2_REPO_USER }}
prsourcerepository: ${{ github.event.pull_request.head.repo.full_name }}
run: |
bash ./IntegrationTests/.github/workflows/TriggerIntegrationTests.sh $token $commit $repository $prnumber $prsource $prtarget $username $prsourcerepository