Commit ea48fde9 authored by Matt Mastracci's avatar Matt Mastracci

Full git clean for non-preview deploy builds

Run git clean -xdf before checkout for production, staging, and
force-preview deploys to ensure no stale artifacts from previous
runs on the same self-hosted runner. Automated-preview builds
(linux-only) skip this for faster iteration.
parent 92b0789b
......@@ -208,6 +208,12 @@ jobs:
if: ${{ matrix.os == 'windows' }}
run: git config --system core.longpaths true
# Full clean for production/staging/force-preview to ensure no stale
# artifacts from previous runs on the same self-hosted runner.
- name: Full git clean
if: ${{ needs.deploy-target.outputs.value != 'automated-preview' }}
run: git clean -xdf || true
# we use checkout here instead of the build cache since
# it can fail to restore in different OS'
- uses: actions/checkout@v6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment