Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 0857ffa

Browse files
authored
Merge pull request #25 from aiming/append-git-lfs-config
lfs.urlに値が入らないケースがあるため明示的に追加
2 parents 59c4e7d + 3f294f0 commit 0857ffa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ runs:
7171
https://${{ inputs.github_actor }}:${{ inputs.github_token }}@github.com/${{ inputs.github_repository }}.git \
7272
${{ inputs.checkout_dir }}
7373
74-
if [ $(git config --global --get-all safe.directory | grep -c "$(pwd)$") -eq 0 ]; then
74+
if [ $(git config --global --get-all safe.directory | grep -c "$(pwd)$") -eq 0 ]; then
7575
/usr/bin/git config --global --add safe.directory $(pwd)
7676
fi
7777
@@ -87,6 +87,8 @@ runs:
8787
8888
/usr/bin/git config --local user.name "${GITHUB_ACTOR}"
8989
/usr/bin/git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
90+
# workaround `git lfs pull` is failure
91+
/usr/bin/git config lfs.url https://${{ inputs.github_actor }}:${{ inputs.github_token }}@github.com/${{ inputs.github_repository }}.git/info/lfs
9092
popd
9193
9294
unset GIT_LFS_SKIP_SMUDGE

0 commit comments

Comments
 (0)