Github: unshallow on decontamination (#2521)
* Github: unshallow on decontamination * Github: fix syntax * Github: decontaminate without full tree * Github: update decontaminate action in all workflows
This commit is contained in:
parent
0444a80f19
commit
fd8607398d
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -21,7 +21,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Checkout code'
|
- name: 'Checkout code'
|
||||||
|
@ -21,7 +21,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Checkout code'
|
- name: 'Checkout code'
|
||||||
|
7
.github/workflows/merge_report.yml
vendored
7
.github/workflows/merge_report.yml
vendored
@ -15,7 +15,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Checkout code'
|
- name: 'Checkout code'
|
||||||
|
7
.github/workflows/pvs_studio.yml
vendored
7
.github/workflows/pvs_studio.yml
vendored
@ -22,7 +22,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Checkout code'
|
- name: 'Checkout code'
|
||||||
|
7
.github/workflows/unit_tests.yml
vendored
7
.github/workflows/unit_tests.yml
vendored
@ -15,7 +15,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
7
.github/workflows/updater_test.yml
vendored
7
.github/workflows/updater_test.yml
vendored
@ -15,7 +15,12 @@ jobs:
|
|||||||
- name: 'Decontaminate previous build leftovers'
|
- name: 'Decontaminate previous build leftovers'
|
||||||
run: |
|
run: |
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
git submodule status || (
|
||||||
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
||||||
|
do
|
||||||
|
git rm -rf --cached "$submodule"
|
||||||
|
done
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
Loading…
Reference in New Issue
Block a user