Skip to content

Commit

Permalink
Add GitHub workspace dir as a safe Git directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Apr 27, 2022
1 parent b08fa8d commit dcb7bf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ else
die Cannot create a release from a non-tag
fi

git config --global --add safe.directory /github/workspace

# fetch the annotated tag, GHA creates a fake lightweight tag
git fetch origin --force "$GITHUB_REF:$GITHUB_REF" >/dev/null 2>&1

Expand Down

0 comments on commit dcb7bf8

Please sign in to comment.