Merge pull request #596 from ybettan/remove-label

ci: requiring the 'ok-to-test' label for running some workflows
This commit is contained in:
Yoni Bettan 2022-01-09 13:27:54 +02:00 committed by GitHub
commit 88c3f50cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View File

@ -1,7 +1,8 @@
name: e2e-k8s
name: e2e-k3s
on:
pull_request:
types: [labeled]
paths:
- 'pkg/query-service/**'
- 'frontend/**'
@ -10,6 +11,7 @@ jobs:
image-build-and-push-query-service:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'ok-to-test' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
@ -31,6 +33,7 @@ jobs:
image-build-and-push-frontend:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'ok-to-test' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
@ -61,6 +64,7 @@ jobs:
deploy-on-k3s-cluster:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'ok-to-test' }}
needs:
- image-build-and-push-query-service
- image-build-and-push-frontend

20
.github/workflows/remove-label.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
name: remove-label
on:
pull_request:
types: [synchronize]
paths:
- 'pkg/query-service/**'
- 'frontend/**'
jobs:
remove:
runs-on: ubuntu-latest
steps:
- name: Remove label
uses: buildsville/add-remove-label@v1
with:
label: ok-to-test
type: remove
token: ${{ secrets.REPO_ACCESS_TOKEN }}