From 5bebb80e44c49b7fd51bdf294eedd2fa9f596339 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 01:03:47 +0000 Subject: [PATCH] feat(ci): delete issue comment on manual release trigger --- .gitea/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 325105c..6ff9fd9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,6 +19,10 @@ jobs: if: ${{ !contains(gitea.event.issue.number, '436') || !contains(gitea.event.comment.body, '/trigger-release') || !contains(gitea.event.comment.user.login, 'luke') }} run: exit 1 + - name: Delete issue comment + run: | + curl -X DELETE -H "Authorization: token ${{ gitea.token }}" "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/comments/${{ gitea.event.comment.id }}" + get_latest_tag: name: Get latest tag runs-on: ubuntu-latest