Skip to content

Commit

Permalink
revert Optional cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersokari committed Jan 16, 2025
1 parent 1d4f232 commit 0d49ab7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dist/utilities/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion src/utilities/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 0d49ab7

Please sign in to comment.