Skip to content

Commit ce4880b

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

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

0 commit comments

Comments
 (0)