We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ffe9d commit 08c105cCopy full SHA for 08c105c
1 file changed
action.yml
@@ -483,3 +483,14 @@ runs:
483
if [[ -f "${WORKTREE_DIR}/${BRANCH}/report.html" ]]; then
484
echo " - ${BRANCH}/report.html"
485
fi
486
+
487
+ - name: Cleanup worktree
488
+ if: ${{ always() }}
489
+ shell: bash
490
+ run: |
491
+ set -euo pipefail
492
+ if [[ -n "${WORKTREE_DIR:-}" ]]; then
493
+ git worktree remove --force "$WORKTREE_DIR" >/dev/null 2>&1 || true
494
+ rm -rf -- "$WORKTREE_DIR" || true
495
+ fi
496
+ git worktree prune || true
0 commit comments