Skip to content

Commit 4e8eb91

Browse files
committed
Sanitize user home on GitHub Action job start on Atlas
1 parent 543e095 commit 4e8eb91

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/ci-prerequisites-atlas.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reclaims disk space and sanitizes user home on Atlas infrastructure
2+
3+
# We use the GitHub cache for the relevant parts of these directories.
4+
# Also, we do not want to keep things like ~/.gradle/build-scan-data.
5+
rm -rf ~/.gradle/
6+
rm -rf ~/.m2/

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
9898
with:
9999
name: build-scan-data-${{ matrix.rdbms }}
100-
path: build-scan-data.tgz
100+
path: ~/.gradle/build-scan-data
101101

102102
- name: Upload test reports (if Gradle failed)
103103
uses: actions/upload-artifact@v4
@@ -129,8 +129,8 @@ jobs:
129129
- uses: actions/checkout@v4
130130
with:
131131
persist-credentials: false
132-
- name: Reclaim Disk Space
133-
run: .github/ci-prerequisites.sh
132+
- name: Reclaim disk space and sanitize user home
133+
run: .github/ci-prerequisites-atlas.sh
134134
- name: Start database
135135
env:
136136
RDBMS: ${{ matrix.rdbms }}

0 commit comments

Comments
 (0)