Add cleanup script to the beginning of all workflows to ensure a clean slate (#7515)

This commit is contained in:
Chris Marslender 2021-07-14 20:35:51 -07:00 committed by GitHub
parent 447d038848
commit f708500f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 12 deletions

View File

@ -34,6 +34,10 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
- name: Cleanup any leftovers that exist from previous runs
run: bash build_scripts/clean-runner.sh || true
# Create our own venv outside of the git directory JUST for getting the ACTUAL version so that install can't break it
- name: Create installer version number
id: version_number

View File

@ -36,6 +36,9 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Cleanup any leftovers that exist from previous runs
run: bash build_scripts/clean-runner.sh || true
- name: Setup Python environment
uses: actions/setup-python@v2
with:

View File

@ -36,6 +36,9 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Cleanup any leftovers that exist from previous runs
run: bash build_scripts/clean-runner.sh || true
- name: Setup Python environment
uses: actions/setup-python@v2
with:

View File

@ -27,24 +27,15 @@ jobs:
with:
access_token: ${{ github.token }}
- name: Cleanup any leftovers that exist from previous runs
run: |
rm -rf ../venv || true
rm -rf venv || true
rm -rf chia_blockchain.egg-info || true
rm -rf build_scripts/final_installer || true
rm -rf build_scripts/dist || true
rm -rf build_scripts/pyinstaller || true
rm -rf chia-blockchain-gui/build || true
rm -rf chia-blockchain-gui/daemon || true
rm -rf chia-blockchain-gui/node_modules || true
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Cleanup any leftovers that exist from previous runs
run: bash build_scripts/clean-runner.sh || true
- name: Test for secrets access
id: check_secrets
shell: bash

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Cleans up files/directories that may be left over from previous runs for a clean slate before starting a new build
rm -rf ../venv || true
rm -rf venv || true
rm -rf chia_blockchain.egg-info || true
rm -rf build_scripts/final_installer || true
rm -rf build_scripts/dist || true
rm -rf build_scripts/pyinstaller || true
rm -rf chia-blockchain-gui/build || true
rm -rf chia-blockchain-gui/daemon || true
rm -rf chia-blockchain-gui/node_modules || true