From 9914f435f385edc4318d44a2a53aa413219d4311 Mon Sep 17 00:00:00 2001 From: Alessandro Mariotti Date: Thu, 9 Nov 2023 12:54:08 +0100 Subject: [PATCH] fix: add lfs workaround --- .github/workflows/django-step-lint-check.yml | 9 ++++++--- .github/workflows/django-step-tests.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/django-step-lint-check.yml b/.github/workflows/django-step-lint-check.yml index e66ad374..18edbd0e 100644 --- a/.github/workflows/django-step-lint-check.yml +++ b/.github/workflows/django-step-lint-check.yml @@ -53,16 +53,19 @@ jobs: steps: - name: Install prerequisites - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} run: apt-get update && apt-get install -y git-lfs - name: Checkout code uses: actions/checkout@v3 - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} with: lfs: 'true' + - uses: actions/checkout@v3 + if: ${{ inputs.ENABLE_LFS == false }} - run: git config --global --add safe.directory /__w/mobygis-waterjade/mobygis-waterjade + if: ${{ inputs.ENABLE_LFS == true }} - name: Checkout LFS objects - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} run: git lfs pull - name: Setup run: ${{ inputs.SETUP_COMMANDS }} diff --git a/.github/workflows/django-step-tests.yml b/.github/workflows/django-step-tests.yml index b1f9f919..1bb2ec78 100644 --- a/.github/workflows/django-step-tests.yml +++ b/.github/workflows/django-step-tests.yml @@ -52,15 +52,18 @@ jobs: steps: - name: Install prerequisites - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} run: apt-get update && apt-get install -y git-lfs - uses: actions/checkout@v3 - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} with: lfs: 'true' + - uses: actions/checkout@v3 + if: ${{ inputs.ENABLE_LFS == false }} - run: git config --global --add safe.directory /__w/mobygis-waterjade/mobygis-waterjade + if: ${{ inputs.ENABLE_LFS == true }} - name: Checkout LFS objects - if: ${{ inputs.ENABLE_LFS == 'true' }} + if: ${{ inputs.ENABLE_LFS == true }} run: git lfs pull - name: Setup run: ${{ inputs.SETUP_COMMANDS }}