Skip to content

Commit 811c980

Browse files
authored
ci: Use cleanup-workspace action (#5763)
* ci: Use cleanup-workspace action * Use latest version
1 parent cf5f65b commit 811c980

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,9 @@ jobs:
102102
echo 'CMake target: ${{ matrix.cmake_target }}'
103103
echo 'Config name: ${{ matrix.config_name }}'
104104
105-
- name: Clean workspace (MacOS)
106-
if: ${{ inputs.os == 'macos' }}
107-
run: |
108-
WORKSPACE=${{ github.workspace }}
109-
echo "Cleaning workspace '${WORKSPACE}'."
110-
if [ -z "${WORKSPACE}" ] || [ "${WORKSPACE}" = "/" ]; then
111-
echo "Invalid working directory '${WORKSPACE}'."
112-
exit 1
113-
fi
114-
find "${WORKSPACE}" -depth 1 | xargs rm -rfv
105+
- name: Cleanup workspace
106+
if: ${{ runner.os == 'macOS' }}
107+
uses: XRPLF/actions/.github/actions/cleanup-workspace@3f044c7478548e3c32ff68980eeb36ece02b364e
115108

116109
- name: Checkout repository
117110
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

0 commit comments

Comments
 (0)