workflows: tweak posting logic
This commit is contained in:
4
.github/workflows/dispatch-build-bottle.yml
vendored
4
.github/workflows/dispatch-build-bottle.yml
vendored
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user