workflows: tweak posting logic

This commit is contained in:
Jonathan Chang
2020-11-14 22:50:46 +11:00
parent 3c8d192ff9
commit 62f6f78f64

View File

@@ -89,7 +89,7 @@ jobs:
run: rm -rvf bottles
- name: Post comment on failure
if: failure() && github.event.inputs.issue
if: ${{!success() && github.event.inputs.issue > 0}}
uses: Homebrew/actions/post-comment@master
with:
token: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
@@ -131,7 +131,7 @@ jobs:
token: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
- name: Post comment on failure
if: failure() && github.event.inputs.issue
if: ${{!success() && github.event.inputs.issue > 0}}
uses: Homebrew/actions/post-comment@master
with:
token: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}