From 0d49ab7197be46433a20e638e77c089b883c5fb3 Mon Sep 17 00:00:00 2001 From: sokari Date: Thu, 16 Jan 2025 13:35:08 +0100 Subject: [PATCH] revert Optional cleanup --- action.yaml | 2 -- dist/utilities/cleanup.js | 2 +- src/utilities/cleanup.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yaml b/action.yaml index eec3de1f..157c240f 100644 --- a/action.yaml +++ b/action.yaml @@ -10,13 +10,11 @@ runs: using: 'node20' main: "dist/index.js" post: "dist/utilities/cleanup.js" - post-if: ${{ inputs.google_credentials_json != '' }} inputs: google_credentials_json: description: "Set Firebase (Google Cloud) credentials for History, Retries and Firebase Hosting" required: false - default: "" storage_bucket: description: "A Google Cloud Storage bucket for managing Allure History and Retries" required: false diff --git a/dist/utilities/cleanup.js b/dist/utilities/cleanup.js index 0483fdaf..5f3cb5bb 100644 --- a/dist/utilities/cleanup.js +++ b/dist/utilities/cleanup.js @@ -5,7 +5,7 @@ async function cleanupCredentials(filePath) { console.log('Credentials file cleaned up.'); } catch (error) { - console.error('Failed to clean up credentials file:', error); + console.error('No credentials to cleanup'); } } await cleanupCredentials('credentials/key.json'); diff --git a/src/utilities/cleanup.ts b/src/utilities/cleanup.ts index 5548b9e7..37ed783f 100644 --- a/src/utilities/cleanup.ts +++ b/src/utilities/cleanup.ts @@ -5,7 +5,7 @@ async function cleanupCredentials(filePath: string) { await unlink(filePath); console.log('Credentials file cleaned up.'); } catch (error) { - console.error('Failed to clean up credentials file:', error); + console.error('No credentials to cleanup'); } }