Skip to content

Commit f4434cb

Browse files
committed
chore: update action.min.js just in case
1 parent 53719cd commit f4434cb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

bin/action.min.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91666,22 +91666,20 @@ var tmp = createCommonjsModule(function (module) {
9166691666
* See the License for the specific language governing permissions and
9166791667
* limitations under the License.
9166891668
*/
91669-
// Set up Google Application Credentials for use by the Firebase CLI
91670-
// https://cloud.google.com/docs/authentication/production#finding_credentials_automatically
91671-
async function createGacFile(googleApplicationCredentials) {
91669+
// creates file with GAC info if parameter is not already a path to a file
91670+
// NOTE: no validation of the credential information is performed
91671+
async function createGacFile(gacInfo) {
9167291672
try {
91673-
if (fs.existsSync(googleApplicationCredentials)) {
91674-
return googleApplicationCredentials;
91673+
if (fs.existsSync(gacInfo)) {
91674+
return gacInfo;
9167591675
}
9167691676
} catch (e) {
91677-
console.log("debug: failed checking file existence with error %O", e);
91678-
// googleApplicationCredentials is not a path to a file
91677+
console.warn("unexpected error while validing GAC info. Interpreting provided info as credentials data.");
9167991678
}
91680-
9168191679
const tmpFile = tmp.fileSync({
9168291680
postfix: ".json"
9168391681
});
91684-
fs.writeSync(tmpFile.fd, googleApplicationCredentials);
91682+
fs.writeSync(tmpFile.fd, gacInfo);
9168591683
return tmpFile.name;
9168691684
}
9168791685

0 commit comments

Comments
 (0)