From e314d3a77297bc9a33625fb9b446a6207c65e0a3 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:03:55 +0200 Subject: [PATCH] ci: fix TPU skip if (#17672) --- .github/workflows/tpu-tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tpu-tests.yml b/.github/workflows/tpu-tests.yml index 168d3cb78b..5602a5fb82 100644 --- a/.github/workflows/tpu-tests.yml +++ b/.github/workflows/tpu-tests.yml @@ -5,6 +5,7 @@ on: branches: [master, "release/*"] pull_request_target: branches: [master, "release/*"] + types: [ opened, reopened, edited, ready_for_review, synchronize ] concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} @@ -25,8 +26,11 @@ env: jobs: test-on-tpus: runs-on: ubuntu-22.04 - # run only when the PR title contains '[TPU]' or is a merge to master - if: ${{ startsWith(github.event_name, 'pull_request') && contains(github.event.pull_request.title, '[TPU]') || (github.event_name == 'push' && github.ref == 'refs/heads/master') }} + # run only when the PR title contains 'TPU' or is a merge to master + if: | + (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (startsWith(github.event_name, 'pull_request') && ( contains(github.event.pull_request.title, 'TPU')) + strategy: fail-fast: false matrix: