mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01: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
|
name: Try
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
parse-comment:
|
parse-comment:
|
||||||
name: Process Comment
|
name: Process Comment
|
||||||
|
@ -87,7 +90,7 @@ jobs:
|
||||||
if: ${{ always() && fromJson(needs.parse-comment.outputs.configuration).try}}
|
if: ${{ always() && fromJson(needs.parse-comment.outputs.configuration).try}}
|
||||||
steps:
|
steps:
|
||||||
- name: Success
|
- name: Success
|
||||||
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
|
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue