Skip to content

Commit 570f046

Browse files
ci: replace ad-hoc rm -rf with free-disk-space action in podman-next
The three manual sudo rm -rf lines are inconsistent with every other long-running CI job, which all use endersonmenezes/free-disk-space@v3. The action also removes swap (missed by the manual approach) and is easier to audit.
1 parent f548964 commit 570f046

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/test-podman-next.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
name: Podman Next Test
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Remove Unnecessary Software
16-
run: |
17-
sudo rm -rf /usr/share/dotnet || true
18-
sudo rm -rf /usr/local/lib/android || true
19-
sudo rm -rf /opt/ghc || true
15+
- uses: endersonmenezes/free-disk-space@v3
16+
with:
17+
remove_android: true
18+
remove_dotnet: true
19+
remove_haskell: true
20+
remove_swap: true
21+
rm_cmd: "rmz" # Faster than rm
2022
- name: Set Environment Variables
2123
run: |
2224
echo "KUBECONFIG=${{ github.workspace }}/hack/bin/kubeconfig.yaml" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)