mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-17 09:35:51 +00:00
ci: Use cleanup-workspace action (#5763)
* ci: Use cleanup-workspace action * Use latest version
This commit is contained in:
13
.github/workflows/build-test.yml
vendored
13
.github/workflows/build-test.yml
vendored
@@ -102,16 +102,9 @@ jobs:
|
|||||||
echo 'CMake target: ${{ matrix.cmake_target }}'
|
echo 'CMake target: ${{ matrix.cmake_target }}'
|
||||||
echo 'Config name: ${{ matrix.config_name }}'
|
echo 'Config name: ${{ matrix.config_name }}'
|
||||||
|
|
||||||
- name: Clean workspace (MacOS)
|
- name: Cleanup workspace
|
||||||
if: ${{ inputs.os == 'macos' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
run: |
|
uses: XRPLF/actions/.github/actions/cleanup-workspace@3f044c7478548e3c32ff68980eeb36ece02b364e
|
||||||
WORKSPACE=${{ github.workspace }}
|
|
||||||
echo "Cleaning workspace '${WORKSPACE}'."
|
|
||||||
if [ -z "${WORKSPACE}" ] || [ "${WORKSPACE}" = "/" ]; then
|
|
||||||
echo "Invalid working directory '${WORKSPACE}'."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
find "${WORKSPACE}" -depth 1 | xargs rm -rfv
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||||
|
|||||||
Reference in New Issue
Block a user