Skip to content

Commit eb442f2

Browse files
authored
fix: Decrease delay
1 parent 7ae3ef4 commit eb442f2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

entrypoint.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

4-
if [[ "${GITHUB_TOKEN:-}" ]]; then
5-
export GH_TOKEN="$INPUT_TOKEN"
6-
echo "export GH_TOKEN=$INPUT_TOKEN"
7-
else
8-
export GH_TOKEN="$GITHUB_TOKEN"
4+
if [ -z "${GITHUB_TOKEN:-}" ]; then
5+
export GITHUB_TOKEN="$INPUT_TOKEN"
96
fi
107

118
[ -z "$INPUT_TITLE" ] && INPUT_TITLE="Name"
@@ -17,7 +14,7 @@ INPUT_TITLE="$(echo "$INPUT_TITLE" | tr -d ' ')"
1714
if (( rc == 0 )); then
1815
echo "Release $INPUT_TAG does already exists, will be overwritten..."
1916
gh release delete "$INPUT_TAG" --cleanup-tag --yes
20-
sleep 5
17+
sleep 3
2118
fi
2219

2320
if [ -z "${INPUT_COMMIT}" ]; then

0 commit comments

Comments
 (0)