diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index d56728c2..9c3582e0 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -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