Skip to content

Commit

Permalink
ci: avoid reporting if no need to run (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 6, 2024
1 parent ff14ff6 commit 2209510
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-saucelabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
if: |
inputs.saucelab_test == true || inputs.saucelab_test == null
&& (github.event_name != 'pull_request'
|| github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.fork == false)
|| ( github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.fork == false ))
runs-on: ubuntu-latest
strategy:
# Saucelab doesn't support running test in //.
Expand Down Expand Up @@ -74,7 +74,12 @@ jobs:

all-tests-saucelabs:
name: All Tests SauceLabs
if: always()
if: |
always()
&& (inputs.saucelab_test == true || inputs.saucelab_test == null)
&& (github.event_name != 'pull_request'
|| (github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.fork == false))
runs-on: ubuntu-latest
needs:
- test-saucelabs
Expand Down

0 comments on commit 2209510

Please sign in to comment.