Skip to content

Commit 3a89401

Browse files
authored
fix: Set token from input
1 parent e7078d0 commit 3a89401

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

entrypoint.sh

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

4+
if [ -z "$GITHUB_TOKEN" ]; then
5+
echo "Setting token..."
6+
export GITHUB_TOKEN="$INPUT_TOKEN"
7+
fi
8+
49
[ -z "$INPUT_TITLE" ] && INPUT_TITLE="Name"
510
INPUT_TITLE="$(echo "$INPUT_TITLE" | tr -d ' ')"
611
[ -z "$INPUT_TAG" ] && INPUT_TAG="$(date +%Y%m%d%H%M%S)"

0 commit comments

Comments
 (0)