Skip to content

Commit

Permalink
Add the ability to run continuous-only tests with a tag
Browse files Browse the repository at this point in the history
#test-continuous

PiperOrigin-RevId: 676544618
  • Loading branch information
mkruskal-google authored and copybara-github committed Sep 19, 2024
1 parent 7a7a087 commit 79ea27e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ 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
GITHUB_BODY='${{ github.event.pull_request.body }}'
TEST_CONTINUOUS_TAG='
#test-continuous'
if ([ "${{ github.event_name }}" == 'pull_request' ] || [ "${{ github.event_name }}" == 'pull_request_target' ]) && [[ "$GITHUB_BODY" != *"$TEST_CONTINUOUS_TAG"* ]]; then
echo "continuous-run=" >> "$GITHUB_OUTPUT"
echo "continuous-prefix=[SKIPPED] (Continuous)" >> "$GITHUB_OUTPUT"
else
Expand Down

0 comments on commit 79ea27e

Please sign in to comment.