mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-16 02:50:39 +00:00
chore: cleanup artifacts
This commit is contained in:
21
.github/workflows/stable.yml
vendored
21
.github/workflows/stable.yml
vendored
@@ -322,9 +322,18 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cleanup artifacts
|
- name: Delete build artifacts
|
||||||
uses: geekyeggo/delete-artifact@v5
|
env:
|
||||||
with:
|
FORGE_TOKEN: ${{ gitea.token }}
|
||||||
name: |
|
REPO: ${{ gitea.repository }}
|
||||||
client-release
|
API: ${{ gitea.server_url }}/api/v1
|
||||||
server-release
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user