|
|
@@ -18,16 +18,8 @@ jobs:
|
|
|
main:
|
|
|
runs-on: [self-hosted,FlipperZeroShell]
|
|
|
steps:
|
|
|
- - name: 'Decontaminate previous build leftovers'
|
|
|
- run: |
|
|
|
- if [ -d .git ]; then
|
|
|
- git submodule status || (
|
|
|
- git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
|
|
- do
|
|
|
- git rm -rf "$submodule"
|
|
|
- done
|
|
|
- )
|
|
|
- fi
|
|
|
+ - name: 'Wipe workspace'
|
|
|
+ run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
|
|
|
|
|
|
- name: 'Checkout code'
|
|
|
uses: actions/checkout@v3
|
|
|
@@ -171,13 +163,8 @@ jobs:
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags') }}
|
|
|
runs-on: [self-hosted,FlipperZeroShell]
|
|
|
steps:
|
|
|
- - name: 'Decontaminate previous build leftovers'
|
|
|
- run: |
|
|
|
- if [ -d .git ]
|
|
|
- then
|
|
|
- git submodule status \
|
|
|
- || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
|
|
- fi
|
|
|
+ - name: 'Wipe workspace'
|
|
|
+ run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
|
|
|
|
|
|
- name: 'Checkout code'
|
|
|
uses: actions/checkout@v3
|