From 95697401f563d4e3938c4946c552a145b3afb45d Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Thu, 19 Sep 2024 13:35:54 -0700 Subject: [PATCH] Add the ability to run continuous-only tests with a tag #test-continuous PiperOrigin-RevId: 676544618 --- .github/workflows/test_runner.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_runner.yml b/.github/workflows/test_runner.yml index 64bad17990a54..15b24072709f5 100644 --- a/.github/workflows/test_runner.yml +++ b/.github/workflows/test_runner.yml @@ -105,7 +105,7 @@ jobs: - name: Set Test Type Variables id: set-test-type-vars run: | - if [ "${{ github.event_name }}" == 'pull_request' ] || [ "${{ github.event_name }}" == 'pull_request_target' ]; then + if ([ "${{ github.event_name }}" == 'pull_request' ] || [ "${{ github.event_name }}" == 'pull_request_target' ]) && ${{ !contains(toJson(github.event.pull_request.body), '\r\n#test-continuous') }}; then echo "continuous-run=" >> "$GITHUB_OUTPUT" echo "continuous-prefix=[SKIPPED] (Continuous)" >> "$GITHUB_OUTPUT" else