mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
More tweaks for the try GitHub Action (#30029)
- Don't trigger try jobs when comments are deleted or edited. - Don't report success for cancelled jobs.
This commit is contained in:
parent
e38d21d33d
commit
4d627318af
1 changed files with 5 additions and 2 deletions
7
.github/workflows/try.yml
vendored
7
.github/workflows/try.yml
vendored
|
@ -1,6 +1,9 @@
|
|||
on: issue_comment
|
||||
name: Try
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
parse-comment:
|
||||
name: Process Comment
|
||||
|
@ -87,7 +90,7 @@ jobs:
|
|||
if: ${{ always() && fromJson(needs.parse-comment.outputs.configuration).try}}
|
||||
steps:
|
||||
- name: Success
|
||||
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
|
||||
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue