Skip to content

Commit

Permalink
zflist-publish: ensure token get refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxux committed Dec 3, 2023
1 parent 0effb5a commit e1b4be2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/zflist-publish
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ if [ "$INPUT_TOKEN" != "" ]; then
export ZFLIST_HUB_TOKEN=$INPUT_TOKEN
export ZFLIST_HUB_USER=$INPUT_USER

export ZFLIST_HUB_TOKEN=$(zflist hub refresh)
ZFLIST_HUB_TOKEN=$(zflist hub refresh)
if [ $? == 1 ]; then
echo "Could not refresh hub token, is the token valid ?"
exit 1
fi

if [ "$ZFLIST_HUB_USER" != "" ]; then
echo "Checking logged in username (expected: $ZFLIST_HUB_USER)"
Expand Down

0 comments on commit e1b4be2

Please sign in to comment.