mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: delete the comment if there are no breaking changes
This commit is contained in:
parent
6a6d8fccd9
commit
c1f004ee9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user