🐛 fix(gitea_workflow): clean up temporary repo dirs in workflows

This commit is contained in:
csh
2026-05-22 16:39:08 +08:00
parent 98c3f305f9
commit 2bc3b115dc
5 changed files with 6 additions and 0 deletions
@@ -32,6 +32,7 @@ jobs:
TOKEN="${{ secrets.WORKFLOW }}"
mkdir -p "${{ env.WORKSPACE_DIR }}"
REPO_DIR="$(mktemp -d "${{ env.WORKSPACE_DIR }}/${REPO_NAME}.XXXXXX")"
trap 'rm -rf "$REPO_DIR"' EXIT
if [ -n "$TOKEN" ]; then
REPO_URL="https://oauth2:${TOKEN}@${GITHUB_SERVER_URL#https://}/${{ github.repository }}.git"
else