Add dry-run option
This commit is contained in:
@@ -174,6 +174,12 @@ inputs:
|
||||
description: Enable debug logs
|
||||
default: no
|
||||
|
||||
# Enable dry-run mode
|
||||
# Generate image but does not push it (used for testing)
|
||||
dryrun:
|
||||
description: Enable dry-run
|
||||
default: no
|
||||
|
||||
# When enabled, any plugins errors will throw
|
||||
# By default, it will still generates metrics but renders an error message
|
||||
plugins_errors_fatal:
|
||||
|
||||
5
action/dist/index.js
vendored
5
action/dist/index.js
vendored
@@ -911,7 +911,10 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_actions_github_lib_gith
|
||||
console.log(`Render | complete`)
|
||||
|
||||
//Commit to repository
|
||||
{
|
||||
const dryrun = core.getInput("dryrun") || false
|
||||
if (dryrun)
|
||||
console.log(`Dry-run | complete`)
|
||||
else {
|
||||
//Committer token
|
||||
const token = core.getInput("committer_token") || core.getInput("token")
|
||||
console.log(`Committer token | ${token ? "provided" : "missing"}`)
|
||||
|
||||
@@ -117,7 +117,10 @@
|
||||
console.log(`Render | complete`)
|
||||
|
||||
//Commit to repository
|
||||
{
|
||||
const dryrun = core.getInput("dryrun") || false
|
||||
if (dryrun)
|
||||
console.log(`Dry-run | complete`)
|
||||
else {
|
||||
//Committer token
|
||||
const token = core.getInput("committer_token") || core.getInput("token")
|
||||
console.log(`Committer token | ${token ? "provided" : "missing"}`)
|
||||
|
||||
Reference in New Issue
Block a user