chore: delete the comment if there are no breaking changes

This commit is contained in:
Levente Balogh 2021-12-14 11:36:45 +01:00
parent 6a6d8fccd9
commit c1f004ee9d

View File

@ -48,7 +48,7 @@ jobs:
uses: jwalton/gh-find-current-pr@v1
id: finder
- name: Comment on PR (if there are breaking changes)
- name: Comment on PR
if: ${{ env.BREAKING_CHANGES_IS_BREAKING == '1' || env.BREAKING_CHANGES_IS_BREAKING == 1 }}
uses: marocchino/sticky-pull-request-comment@v2
with:
@ -62,6 +62,12 @@ jobs:
[Check console output](${{steps.get-job-link.outputs.result}})
- name: Remove comment on PR
if: ${{ env.BREAKING_CHANGES_IS_BREAKING == '0' || env.BREAKING_CHANGES_IS_BREAKING == 0 }}
uses: marocchino/sticky-pull-request-comment@v2
with:
delete: true
- name: Add label (if there are breaking changes)
if: ${{ env.BREAKING_CHANGES_IS_BREAKING == '1' || env.BREAKING_CHANGES_IS_BREAKING == 1 }}
uses: actions/github-script@v5