Explorar o código

Github: fix unit tests workflow (#2117)

あく %!s(int64=3) %!d(string=hai) anos
pai
achega
27921e42ff
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      .github/workflows/unit_tests.yml

+ 6 - 0
.github/workflows/unit_tests.yml

@@ -11,6 +11,12 @@ jobs:
   run_units_on_test_bench:
     runs-on: [self-hosted, FlipperZeroTest]
     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: Checkout code
         uses: actions/checkout@v3
         with: