From fd8aeb2b6f5a5e9ddb9ff18cf65a1ba413475407 Mon Sep 17 00:00:00 2001 From: Fireblade <3+fireblade@noreply.neolegacy.dev> Date: Mon, 13 Jul 2026 01:49:05 +0100 Subject: [PATCH] chore: cleanup artifacts --- .github/workflows/stable.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 4a18604d..26bd7d11 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -322,9 +322,18 @@ jobs: if: always() runs-on: ubuntu-latest steps: - - name: Cleanup artifacts - uses: geekyeggo/delete-artifact@v5 - with: - name: | - client-release - server-release + - name: Delete build artifacts + env: + FORGE_TOKEN: ${{ gitea.token }} + REPO: ${{ gitea.repository }} + API: ${{ gitea.server_url }}/api/v1 + run: | + AUTH="Authorization: token $FORGE_TOKEN" + + ARTIFACTS=$(curl -s -H "$AUTH" \ + "$API/repos/$REPO/actions/artifacts?name=build-windows64") + + for ARTIFACT_ID in $(echo "$ARTIFACTS" | jq -r '.artifacts[].id // empty'); do + curl -s -X DELETE -H "$AUTH" \ + "$API/repos/$REPO/actions/artifacts/$ARTIFACT_ID" + done