fix cleanup
This commit is contained in:
parent
bad829a73b
commit
c276060cb1
1 changed files with 13 additions and 4 deletions
17
.github/workflows/test-integration.yml
vendored
17
.github/workflows/test-integration.yml
vendored
|
|
@ -34,14 +34,23 @@ jobs:
|
||||||
|
|
||||||
- name: Clean runner workspace
|
- name: Clean runner workspace
|
||||||
run: |
|
run: |
|
||||||
# Clean old job workspaces
|
# Save current workspace path
|
||||||
rm -rf ${GITHUB_WORKSPACE}/../../../_work/* || true
|
CURRENT_WORKSPACE="${GITHUB_WORKSPACE}"
|
||||||
# Clean runner logs
|
# Clean old job workspaces except current one
|
||||||
rm -rf ${GITHUB_WORKSPACE}/../../../_diag/* || true
|
find ${GITHUB_WORKSPACE}/../../../_work -maxdepth 2 -type d -mtime +1 -not -path "${CURRENT_WORKSPACE}*" -exec rm -rf {} + 2>/dev/null || true
|
||||||
|
# Clean runner logs older than 1 day
|
||||||
|
find ${GITHUB_WORKSPACE}/../../../_diag -type f -mtime +1 -delete 2>/dev/null || true
|
||||||
|
|
||||||
- run: df -h
|
- run: df -h
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Verify workspace
|
||||||
|
run: |
|
||||||
|
echo "Current directory: $(pwd)"
|
||||||
|
echo "Workspace: ${GITHUB_WORKSPACE}"
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Set up UV
|
- name: Set up UV
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: astral-sh/setup-uv@v3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue