chore: prevent duplicate preview release comments#119
Conversation
Only create a PR comment if one doesn't already exist. This prevents spam when the workflow runs multiple times.
|
✅ Preview binaries are ready! To test with modules: |
|
✅ Preview binaries are ready! To test with modules: |
There was a problem hiding this comment.
@matifali rather than checking all the comments, a better approach would be to get a variable from the previous step like this depending on the if condition, and then use it in the next step
echo "comment=true/false" >> "${GITHUB_OUTPUT}"
Add should_comment flag that's set based on whether a release is created (not updated). Only comment when creating new releases.
|
✅ Preview binaries are ready! To test with modules: |
|
✅ Preview binaries are ready! To test with modules: |
|
@35C4n0r as the workflow gets triggered by another workflow its not possible to test it in this PR. PRs can only run an updated workflow file if the trigger is |
Summary
Test plan