Skip to content

Commit

Permalink
refactor: improve entrypoint command order
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Nov 8, 2023
1 parent 6fa0a00 commit 74a6323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
set -eu

cd "${GITHUB_WORKSPACE}" || exit

# Apply hotfix for 'fatal: unsafe repository' error (see #10).
git config --global --add safe.directory "${GITHUB_WORKSPACE}"

cd "${GITHUB_WORKSPACE}" || exit

if [ -z "${INPUT_TAG}" ]; then
echo "[action-create-tag] No-tag was supplied! Please supply a tag."
exit 1
Expand Down

0 comments on commit 74a6323

Please sign in to comment.