Bug 1918284 [wpt PR 48112] - Make the Safari workflows not be invalid workflow files, a=testonly

Automatic update from web-platform-tests
Make the Safari workflows not be invalid workflow files

We can't put a YAML comment within a string, it needs to be actual
YAML syntax.

--

wpt-commits: 9326ce54c0cebf4fca58c2b51ab263421bdea44e
wpt-pr: 48112
This commit is contained in:
Sam Sneddon 2024-09-15 22:08:39 +00:00 committed by moz-wptsync-bot
parent 2256acf60f
commit 42a6bce6d7
2 changed files with 6 additions and 6 deletions

View File

@ -33,10 +33,10 @@ jobs:
safari-stable-results:
name: "All Tests: Safari (stable)"
needs: check-workflow-run
# We need always() here to then check for success/skipped from the
# dependency, as otherwise the skip cascades. See
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs.
if: |
# We need always() here to then check for success/skipped from the dependency, as otherwise
# the skip cascades. See
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs.
always() &&
(needs.check-workflow-run.result == 'success' || needs.check-workflow-run.result == 'skipped') &&
(github.event_name != 'workflow_run' || fromJSON(needs.check-workflow-run.outputs.updated-refs)[0] != null)

View File

@ -29,10 +29,10 @@ jobs:
safari-technology-preview-results:
name: "All Tests: Safari Technology Preview"
needs: check-workflow-run
# We need always() here to then check for success/skipped from the
# dependency, as otherwise the skip cascades. See
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs.
if: |
# We need always() here to then check for success/skipped from the dependency, as otherwise
# the skip cascades. See
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#defining-prerequisite-jobs.
always() &&
(needs.check-workflow-run.result == 'success' || needs.check-workflow-run.result == 'skipped') &&
(github.event_name != 'workflow_run' || fromJSON(needs.check-workflow-run.outputs.updated-refs)[0] != null)