Skip to content

Commit

Permalink
fix: token auth deprecated warning formatting (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba authored Oct 23, 2022
1 parent 9a66227 commit 55ea7b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ git config --global --add safe.directory $GITHUB_WORKSPACE
RELEASE_NOTES=""
RELEASE_NOTES_FILE=""

TOKEN_DEPRECATED_WARNING_MESSAGE="⚠ This action will stop working with the next future major version of firebase-tools! Migrate to Service Account. See more: https://github.com/wzieba/Firebase-Distribution-Github-Action/wiki/FIREBASE_TOKEN-migration"

if [[ -z ${INPUT_RELEASENOTES} ]]; then
RELEASE_NOTES="$(git log -1 --pretty=short)"
else
Expand All @@ -27,7 +29,7 @@ if [ -n "${INPUT_SERVICECREDENTIALSFILECONTENT}" ] ; then
fi

if [ -n "${INPUT_TOKEN}" ] ; then
echo "⚠ This action will stop working with the next future major version of `firebase-tools`! Migrate to Service Account. See more: https://github.com/wzieba/Firebase-Distribution-Github-Action/wiki/FIREBASE_TOKEN-migration"
echo ${TOKEN_DEPRECATED_WARNING_MESSAGE}
export FIREBASE_TOKEN="${INPUT_TOKEN}"
fi

Expand All @@ -41,5 +43,5 @@ firebase \
$( (( $INPUT_DEBUG )) && printf %s '--debug' )

if [ -n "${INPUT_TOKEN}" ] ; then
echo "⚠ This action will stop working with the next future major version of `firebase-tools`! Migrate to Service Account. See more: https://github.com/wzieba/Firebase-Distribution-Github-Action/wiki/FIREBASE_TOKEN-migration"
echo ${TOKEN_DEPRECATED_WARNING_MESSAGE}
fi

0 comments on commit 55ea7b7

Please sign in to comment.