mirror of https://github.com/databricks/cli.git
[WIP] Add label to skip tests
This commit is contained in:
parent
0a36681bef
commit
2e16384e67
|
@ -3,7 +3,7 @@ name: integration
|
|||
on:
|
||||
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
types: [opened, synchronize, labeled]
|
||||
|
||||
merge_group:
|
||||
|
||||
|
@ -29,7 +29,7 @@ jobs:
|
|||
trigger-tests:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check-token
|
||||
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
|
||||
if: (github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true' && github.event.action != 'labeled')
|
||||
environment: "test-trigger-is"
|
||||
|
||||
steps:
|
||||
|
@ -63,7 +63,7 @@ jobs:
|
|||
# * Queue times out due to duration of tests.
|
||||
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
|
||||
auto-approve:
|
||||
if: github.event_name == 'merge_group'
|
||||
if: github.event_name == 'merge_group' || (github.event.action != 'labeled' && github.event_name == 'pull_request' && github.event.label.name == 'skip-tests')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Mark Check
|
||||
|
|
Loading…
Reference in New Issue