Clean things up before starting the build

In case the queue never is empty we'll never clean things up.. so do this at the start
We now only download the files that are actually needed, so it's not that important anymore when we clean things up.
This commit is contained in:
Christoph Reiter 2020-10-23 16:09:28 +02:00
parent f264829cb4
commit dcf3c2cf21

View File

@ -44,6 +44,13 @@ jobs:
If ($skipBuild) {echo '::set-output name=skip-build::true'}
exit 0
- name: Clean up assets
if: steps.check.outputs.skip-build != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python autobuild.py clean-assets
- name: Show build queue
if: steps.check.outputs.skip-build != 'true'
env:
@ -80,10 +87,3 @@ jobs:
$MSYS2_ROOT=(msys2 -c 'cygpath -w /')
Get-PSDrive -PSProvider FileSystem
python autobuild.py build "$MSYS2_ROOT" "$BUILD_ROOT"
- name: Clean up assets
if: steps.check.outputs.skip-build != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python autobuild.py clean-assets