Skip to content

Commit

Permalink
(TEST) Add the ability to run continuous-only tests with a tag
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676568698
  • Loading branch information
mkruskal-google authored and copybara-github committed Sep 19, 2024
1 parent 7a7a087 commit bdcb512
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 bdcb512

Please sign in to comment.