diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index b777c896..bd13913d 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -67,6 +67,11 @@ jobs: submodules: 'recursive' fetch-depth: 0 + - name: Clean index.lock files if checkout step was cancelled or failed + if: cancelled() || failure() + run: | + find .git -name 'index.lock' -exec rm -v {} \; + # Workaround: https://github.com/actions/checkout/issues/1169 - name: Mark directory as safe run: |