Skip to content

Commit

Permalink
fix: fix each comment step condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed May 5, 2023
1 parent 1c5047a commit 829d0db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ runs:
uses: actions/github-script@v6
if: >
steps.deploy.outputs.deployment-status == 'success'
&& inputs.pr-comment == 'each'
&& (
github.event_name == 'push' && inputs.branch-comment == 'each'
|| startsWith(github.event_name, 'pull_request') && inputs.pr-comment == 'each'
)
env:
body: ${{ steps.comment.outputs.body }}
with:
Expand Down

2 comments on commit 829d0db

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rajyan-bot
Copy link

@rajyan-bot rajyan-bot bot commented on 829d0db May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.