|
|
@@ -12,16 +12,19 @@ jobs:
|
|
|
- name: 'Cleanup workspace'
|
|
|
uses: AutoModality/action-clean@v1
|
|
|
|
|
|
+ - 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: 'Checkout code'
|
|
|
uses: actions/checkout@v2
|
|
|
with:
|
|
|
fetch-depth: 0
|
|
|
-
|
|
|
- - name: 'Checkout submodules: update'
|
|
|
- run: git submodule update --init --recursive
|
|
|
-
|
|
|
- - name: 'Checkout submodules: sync'
|
|
|
- run: git submodule sync
|
|
|
+ submodules: true
|
|
|
|
|
|
- name: 'Docker cache'
|
|
|
uses: satackey/action-docker-layer-caching@v0.0.11
|