Skip to content

Commit 5c31b0b

Browse files
committed
ci: remove old deploy comments to keep pr clean
1 parent 933a08a commit 5c31b0b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/azure-static-web-apps-polite-cliff-0173aa90f.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
with:
2424
submodules: true
2525
lfs: false
26+
- name: Delete old deploy comments
27+
run: |
28+
gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments `
29+
| ConvertFrom-Json `
30+
| Where-Object body -like 'Azure Static Web Apps: Your stage site is ready! Visit it here: *' `
31+
| ForEach-Object {
32+
gh api repos/${{ github.repository }}/issues/comments/$($_.id) -X DELETE
33+
}
34+
shell: pwsh
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2637
- name: Build and deploy to Azure static web apps
2738
id: builddeploy
2839
uses: Azure/static-web-apps-deploy@v1

0 commit comments

Comments
 (0)