From 3d6afac4487e05a4c1ca3dc76ca704a380df79f8 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 22 Oct 2023 17:24:33 +0100 Subject: [PATCH] here it is --- .gitea/workflows/pr-closed.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-closed.yml b/.gitea/workflows/pr-closed.yml index 24c97b6..41cd10e 100644 --- a/.gitea/workflows/pr-closed.yml +++ b/.gitea/workflows/pr-closed.yml @@ -42,4 +42,18 @@ jobs: repo-token: ${{ secrets.TEA_TOKEN }} outcome: ${{ steps.delete_build_branch.outcome }} test-id: Error code ${{ matrix.code }} - \ No newline at end of file + - name: get build format branch name + run: | + firstString=${{ github.head_ref }} + secondString="format-" + echo ::set-env name=FORMAT_BRANCH::${firstString/develop-/"$secondString"} + - name: delete format branch + id: delete_format_branch + run: git push origin --delete ${{ env.FORMAT_BRANCH }} + continue-on-error: true + - uses: mainmatter/continue-on-error-comment@v1 + with: + repo-token: ${{ secrets.TEA_TOKEN }} + outcome: ${{ steps.delete_format_branch.outcome }} + test-id: Error code ${{ matrix.code }} + \ No newline at end of file