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

Commit

Permalink
Merge pull request #25 from aiming/append-git-lfs-config
Browse files Browse the repository at this point in the history
lfs.urlに値が入らないケースがあるため明示的に追加
  • Loading branch information
takesato authored Nov 10, 2023
2 parents 59c4e7d + 3f294f0 commit 0857ffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ runs:
https://${{ inputs.github_actor }}:${{ inputs.github_token }}@github.com/${{ inputs.github_repository }}.git \
${{ inputs.checkout_dir }}
if [ $(git config --global --get-all safe.directory | grep -c "$(pwd)$") -eq 0 ]; then
if [ $(git config --global --get-all safe.directory | grep -c "$(pwd)$") -eq 0 ]; then
/usr/bin/git config --global --add safe.directory $(pwd)
fi
Expand All @@ -87,6 +87,8 @@ runs:
/usr/bin/git config --local user.name "${GITHUB_ACTOR}"
/usr/bin/git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# workaround `git lfs pull` is failure
/usr/bin/git config lfs.url https://${{ inputs.github_actor }}:${{ inputs.github_token }}@github.com/${{ inputs.github_repository }}.git/info/lfs
popd
unset GIT_LFS_SKIP_SMUDGE
Expand Down

0 comments on commit 0857ffa

Please sign in to comment.