Support customized branch for committing (#51)
This commit is contained in:
@@ -15,6 +15,11 @@ inputs:
|
|||||||
description: GitHub Token used to commit metrics
|
description: GitHub Token used to commit metrics
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
|
# Branch to commit
|
||||||
|
committer_branch:
|
||||||
|
description: The branch used to commit metrics
|
||||||
|
default: ""
|
||||||
|
|
||||||
# GitHub username
|
# GitHub username
|
||||||
# Optional, as it defaults "token"'s owner
|
# Optional, as it defaults "token"'s owner
|
||||||
user:
|
user:
|
||||||
@@ -551,4 +556,4 @@ runs:
|
|||||||
METRICS_ACTION: ${{ github.action }}
|
METRICS_ACTION: ${{ github.action }}
|
||||||
METRICS_ACTION_PATH: ${{ github.action_path }}
|
METRICS_ACTION_PATH: ${{ github.action_path }}
|
||||||
METRICS_USE_PREBUILT_IMAGE: ${{ inputs.use_prebuilt_image }}
|
METRICS_USE_PREBUILT_IMAGE: ${{ inputs.use_prebuilt_image }}
|
||||||
INPUTS: ${{ toJson(inputs) }}
|
INPUTS: ${{ toJson(inputs) }}
|
||||||
|
|||||||
@@ -257,7 +257,7 @@
|
|||||||
info("Dry-run", "complete")
|
info("Dry-run", "complete")
|
||||||
else {
|
else {
|
||||||
//Repository and branch
|
//Repository and branch
|
||||||
const branch = github.context.ref.replace(/^refs[/]heads[/]/, "")
|
const branch = input.string("committer_branch", {default:github.context.ref.replace(/^refs[/]heads[/]/, "")})
|
||||||
info("Current repository", `${github.context.repo.owner}/${github.context.repo.repo}`)
|
info("Current repository", `${github.context.repo.owner}/${github.context.repo.repo}`)
|
||||||
info("Current branch", branch)
|
info("Current branch", branch)
|
||||||
//Committer token
|
//Committer token
|
||||||
|
|||||||
Reference in New Issue
Block a user