Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
abejgonzalez committed Jul 23, 2022
1 parent 14551df commit d6572ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/git-workaround/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: git-workaround
description: 'Workaround https://github.com/actions/checkout/issues/766'

runs:
using: "composite"
steps:
- name: Workaround
run: |
if git config --global -l | grep -q "safe.directory=$GITHUB_WORKSPACE"; then
echo "Skip adding safe directory"
else
git config --global --add safe.directory "$GITHUB_WORKSPACE"
fi
shell: bash -leo pipefail {0}

0 comments on commit d6572ac

Please sign in to comment.