Skip to content

Commit

Permalink
Merge pull request #39 from rewindio/hotfix/fix-git-issue
Browse files Browse the repository at this point in the history
fix git permissions issue
  • Loading branch information
mgrachev authored Apr 15, 2022
2 parents e7b7769 + 338ce74 commit cadedd5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh -e

cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit
if [ -n "${GITHUB_WORKSPACE}" ]
then
git config --global --add safe.directory "${GITHUB_WORKSPACE}" || exit 1
git config --global --add safe.directory "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit 1
cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit 1
fi

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

TEMP_PATH="$(mktemp -d)"
Expand Down

0 comments on commit cadedd5

Please sign in to comment.