mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-11 09:59:04 +00:00
Cypress: workflow should run only with a 'safe to test' label (#5109)
This commit is contained in:
parent
89371344ad
commit
ee05e33bc9
@ -18,7 +18,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, synchronize, reopened]
|
types: [labeled, opened, synchronize, reopened]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: cypress-integration-tests-${{ github.head_ref || github.run_id }}
|
group: cypress-integration-tests-${{ github.head_ref || github.run_id }}
|
||||||
@ -27,6 +27,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
install:
|
install:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
job: [0, 1]
|
job: [0, 1]
|
||||||
@ -34,6 +35,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user