Add cleanup step in sync-build-release workflow

This commit is contained in:
clsferguson 2025-09-12 20:36:26 -06:00 committed by GitHub
parent c7989867d7
commit ab630fcca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,13 @@ jobs:
fi
echo "new_version=${CANDIDATE}" >> "$GITHUB_OUTPUT"
- name: Cleanup workspace (always, scoped)
if: ${{ always() }}
run: |
set -euxo pipefail
rm -rf "${GITHUB_WORKSPACE:?}/"* "${GITHUB_WORKSPACE:?}/."[!.]* 2>/dev/null || true
build-gh:
name: Build on GitHub Runner (primary)
needs: check-upstream