Deleting the build if inconsistent

This commit is contained in:
XargonWan 2025-01-11 12:05:39 +09:00
parent 89de73f5d1
commit a8f4609063

View file

@ -69,3 +69,13 @@ jobs:
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check for ubuntu-latest.zip and delete release if not found
run: |
if ! ls artifacts | grep -q 'ubuntu-latest.zip'; then
echo "ubuntu-latest.zip not found. Deleting release..."
gh release delete ${{ env.tag_name }} --yes
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}