Skip to content

Commit

Permalink
fix: add lfs workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-mariotti-zupit committed Nov 9, 2023
1 parent 3f55952 commit 9914f43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/django-step-lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/django-step-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9914f43

Please sign in to comment.