mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove unnecessary join()
s from GitHub Actions (#30040)
`contains()` works on arrays as well as strings, so the `join` is unnecessary when trying to detect job statuses.
This commit is contained in:
parent
2ecdb8f45e
commit
9fa67685f4
5 changed files with 10 additions and 10 deletions
4
.github/workflows/try.yml
vendored
4
.github/workflows/try.yml
vendored
|
@ -90,7 +90,7 @@ jobs:
|
|||
if: ${{ always() && fromJson(needs.parse-comment.outputs.configuration).try}}
|
||||
steps:
|
||||
- name: Success
|
||||
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
|
||||
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
|
@ -106,7 +106,7 @@ jobs:
|
|||
body: "✨ Try run (" + formattedURL + ") " + "succeeded.",
|
||||
});
|
||||
- name: Failure
|
||||
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue