Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasOnatsu committed Nov 11, 2024
1 parent 0f5af7b commit 4e250a4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/actions/build-version/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ echo "::group::Parse version"
# Default to version based on GITHUB_SHA
buildver="git-${GITHUB_SHA:0:7}"

cd $GITHUB_WORKSPACE

echo "::group::Add $GITHUB_WORKSPACE/.git as safe directory"
git config --global --add safe.directory $GITHUB_WORKSPACE/.git
echo "::endgroup::"


if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
buildver="$(printf '%s' "${GITHUB_REF}" | sed 's/refs\/tags\///g')"
elif [[ "${GITHUB_REF_TYPE}" == "branch" ]]; then
Expand Down

0 comments on commit 4e250a4

Please sign in to comment.