We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae3ef4 commit eb442f2Copy full SHA for eb442f2
1 file changed
entrypoint.sh
@@ -1,11 +1,8 @@
1
#!/usr/bin/env bash
2
set -Eeuo pipefail
3
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"
+if [ -z "${GITHUB_TOKEN:-}" ]; then
+ export GITHUB_TOKEN="$INPUT_TOKEN"
9
fi
10
11
[ -z "$INPUT_TITLE" ] && INPUT_TITLE="Name"
@@ -17,7 +14,7 @@ INPUT_TITLE="$(echo "$INPUT_TITLE" | tr -d ' ')"
17
14
if (( rc == 0 )); then
18
15
echo "Release $INPUT_TAG does already exists, will be overwritten..."
19
16
gh release delete "$INPUT_TAG" --cleanup-tag --yes
20
- sleep 5
+ sleep 3
21
22
23
if [ -z "${INPUT_COMMIT}" ]; then
0 commit comments