Skip to content

Commit

Permalink
Added option to skip Firebase tools installation (#68)
Browse files Browse the repository at this point in the history
* Add check for FIREBASE_TOKEN existence (#48)

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

* Skip installing firebase-tools if it exists

---------

Co-authored-by: Karol Wrótniak <[email protected]>
Co-authored-by: Sinan Gunes <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2024
1 parent b445680 commit c6cfd07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ fi
if [ "${upgrade_firebase_tools}" = true ] ; then
curl -sL firebase.tools | upgrade=true bash
else
curl -sL firebase.tools | bash
if command -v firebase >/dev/null 2>&1 ; then
echo_info "Firebase CLI is already installed. Skipping installation."
else
curl -sL firebase.tools | bash
fi
fi

# Deploy
Expand Down

0 comments on commit c6cfd07

Please sign in to comment.