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

@ -67,5 +67,15 @@ jobs:
echo "Uploading $file..." echo "Uploading $file..."
gh release upload ${{ env.tag_name }} "$file" --clobber gh release upload ${{ env.tag_name }} "$file" --clobber
done 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: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}