Skip to content

Commit 74a6323

Browse files
committed
refactor: improve entrypoint command order
1 parent 6fa0a00 commit 74a6323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22
set -eu
33

4+
cd "${GITHUB_WORKSPACE}" || exit
5+
46
# Apply hotfix for 'fatal: unsafe repository' error (see #10).
57
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
68

7-
cd "${GITHUB_WORKSPACE}" || exit
8-
99
if [ -z "${INPUT_TAG}" ]; then
1010
echo "[action-create-tag] No-tag was supplied! Please supply a tag."
1111
exit 1

0 commit comments

Comments
 (0)