Skip to content

Commit 52c58b3

Browse files
authored
diff branch only
1 parent 5b87bfb commit 52c58b3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: entrypoint.sh

-10
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,8 @@ if [[ "${INPUT_PRESET}" ]]; then
3131
pint_command+=" --preset ${INPUT_PRESET}"
3232
fi
3333

34-
if [[ "${INPUT_ONLYDIFF}" == true ]]; then
35-
if [[ -n "${GITHUB_TOKEN}" ]]; then
36-
INPUT_ONLYDIFF=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
37-
"https://api.github.com/repos/${GITHUB_REPOSITORY}" | jq -r .default_branch)
38-
else
39-
INPUT_ONLYDIFF=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
40-
fi
41-
fi
42-
4334
if [[ "${INPUT_ONLYDIFF}" ]]; then
4435
pint_command+=" --diff=${INPUT_ONLYDIFF}"
45-
INPUT_ONLYDIRTY=false
4636
fi
4737

4838
if [[ "${INPUT_ONLYDIRTY}" == true ]]; then

0 commit comments

Comments
 (0)