Merge pull request #437 from JulianGro/gha_clear_user_directory

Fix GitHub Actions not cleaning up after itself
This commit is contained in:
Julian Groß 2023-06-02 22:45:55 +02:00 committed by GitHub
commit fe0f074b54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 12 deletions

View file

@ -89,10 +89,13 @@ jobs:
container: ${{matrix.image}}
steps:
- name: Clear Working Directory
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
run: rm -rf ./*
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache
- name: Configure Build Environment 1
shell: bash
@ -273,7 +276,10 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.s3_secret_access_key }}
run: python3 $GITHUB_WORKSPACE/tools/ci-scripts/upload.py
- name: Clear Working Directory
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
run: rm -rf ./*
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache

View file

@ -109,11 +109,15 @@ jobs:
echo "CLIENT_ONLY=TRUE" >> $GITHUB_ENV
echo "INSTALLER=Overte-Interface-master$BUILD_NUMBER-${{ steps.buildenv1.outputs.github_sha_short }}.$INSTALLER_EXT" >> $GITHUB_ENV
fi
- name: Clear working directory
if: startsWith(matrix.os, 'windows')
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
working-directory: ${{runner.workspace}}
run: rm -rf ./*
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache
- uses: actions/checkout@v1
with:
submodules: false
@ -273,3 +277,11 @@ jobs:
# with:
# name: symbols
# path: ${{runner.workspace}}/${{ steps.buildenv1.outputs.symbols_archive }}
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache

View file

@ -155,10 +155,13 @@ jobs:
echo "INSTALLER=Overte-Interface-$RELEASE_NUMBER-${GIT_COMMIT_SHORT}.$INSTALLER_EXT" >> $GITHUB_ENV
fi
- name: Clear Working Directory
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
run: rm -rf ./*
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache
- uses: actions/checkout@v3
with:
@ -336,7 +339,10 @@ jobs:
path: ./build/${{ env.ARTIFACT_PATTERN }}
if-no-files-found: error
- name: Clear Working Directory
- name: Clear Working Directories
if: contains(matrix.runner, 'linux_aarch64')
shell: bash
run: rm -rf ./*
run: |
rm -rf ./*
rm -rf ~/overte-files
rm -rf ~/.cache