chore: code formatting
This commit is contained in:
@@ -203,7 +203,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
|
|||||||
|
|
||||||
//Committer
|
//Committer
|
||||||
const committer = {}
|
const committer = {}
|
||||||
if ((!dryrun)&&(_action !== "none")) {
|
if ((!dryrun) && (_action !== "none")) {
|
||||||
//Compute committer informations
|
//Compute committer informations
|
||||||
committer.token = _token || token
|
committer.token = _token || token
|
||||||
committer.gist = _action === "gist" ? _gist : null
|
committer.gist = _action === "gist" ? _gist : null
|
||||||
@@ -245,6 +245,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw error
|
throw error
|
||||||
|
|
||||||
}
|
}
|
||||||
//Retrieve previous render SHA to be able to update file content through API
|
//Retrieve previous render SHA to be able to update file content through API
|
||||||
committer.sha = null
|
committer.sha = null
|
||||||
|
|||||||
@@ -260,6 +260,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
value = process.env[`INPUT_${key.toUpperCase()}`]?.trim() ?? "<default-value>"
|
value = process.env[`INPUT_${key.toUpperCase()}`]?.trim() ?? "<default-value>"
|
||||||
|
|
||||||
const unspecified = value === "<default-value>"
|
const unspecified = value === "<default-value>"
|
||||||
//From presets
|
//From presets
|
||||||
if ((key in preset) && (unspecified)) {
|
if ((key in preset) && (unspecified)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user