forked from kedacore/keda
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 939 Bytes
/
pr-e2e-checker.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
name: e2e-tests
on:
pull_request_target:
types:
- labeled
- unlabeled
env:
SKIP_E2E_TAG: skip-e2e
E2E_CHECK_NAME: e2e tests
jobs:
e2e-checker:
name: label checker
runs-on: ubuntu-latest
steps:
- uses: LouisBrunner/checks-action@v1.6.0
name: Enqueue e2e
id: create
with:
token: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ github.event.pull_request.head.sha }}
name: ${{ env.E2E_CHECK_NAME }}
status: queued
- uses: LouisBrunner/checks-action@v1.6.0
name: Skip e2e
if: ${{ contains(github.event.pull_request.labels.*.name, env.SKIP_E2E_TAG )}}
with:
token: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ github.event.pull_request.head.sha }}
check_id: ${{ steps.create.outputs.check_id }}
conclusion: success
output: |
{"summary": "skipped by maintainer"}