8000 Update entrypoint.sh · tj-actions/semver-diff@5b0876d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b0876d

Browse files
authored
Update entrypoint.sh
1 parent 16037d0 commit 5b0876d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if [[ $GITHUB_REF != "refs/tags/"* ]]; then
77
exit 0;
88
fi
99

10-
git remote set-url origin "https://$INPUT_TOKEN@github.com/$GITHUB_REPOSITORY"
11-
1210
git fetch origin +refs/tags/*:refs/tags/*
1311

1412
CURRENT_TAG=${3:-$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)" || true)}
@@ -21,6 +19,7 @@ if [[ -z $CURRENT_TAG ]]; then
2119
exit 0;
2220
fi
2321

22+
echo "::debug::Calculating diff..."
2423
PART=$(wget -O - https://raw.githubusercontent.com/fsaintjacques/semver-tool/3.2.0/src/semver | bash -s diff "${CURRENT_TAG//v/}" "${NEW_TAG//v/}")
2524

2625
echo "::set-output name=release_type::$PART"

0 commit comments

Comments
 (0)
0