Skip to content

Commit

Permalink
Merge pull request #16 from bgd-labs/feat/only-run-on-success
Browse files Browse the repository at this point in the history
ci: run comment action only on success or failure
  • Loading branch information
eboadom authored May 7, 2024
2 parents a4f5f40 + 60825af commit 98eb4e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
comment:
name: Comment Bot
runs-on: ubuntu-latest
# workflow run triggeres on all types of "completed" including "cancelled" and similar
# we want this action to only run on a success & failure though
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }}
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 98eb4e4

Please sign in to comment.