[WIP] Add label to skip tests

This commit is contained in:
Hector Castejon Diaz 2024-12-05 11:05:16 +01:00
parent 0a36681bef
commit 2e16384e67
No known key found for this signature in database
GPG Key ID: 75B70C938163F1D1
1 changed files with 3 additions and 3 deletions

View File

@ -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