diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4b5e0f58f..fcf117191 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,9 @@ jobs: image: ghcr.io/esl-epfl/x-heep-toolchain:latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + with : + fetch-depth: 0 + # - uses: actions/setup-python@v2 with: python-version: 3.9 # - name: Install requirements @@ -30,8 +32,13 @@ jobs: conda activate core-v-mini-mcu find . \ -name '*.vendor.hjson' \ - | xargs -n1 util/vendor.py --verbose \ - && git diff --exit-code + | xargs -n1 util/vendor.py --verbose + if git diff --exit-code; then + echo "No differences found, vendor is up-to-date." + else + echo "::error ::Found differences, please re-vendor." + exit 1 + fi ################## # MCU Generator # ################## @@ -43,7 +50,7 @@ jobs: image: ghcr.io/esl-epfl/x-heep-toolchain:latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + # - uses: actions/setup-python@v2 with: python-version: 3.8 # - name: Install requirements