Skip to content

Commit a3c7a1e

Browse files
committed
feat: inputs.branch can be set to fully qualified reference name including "refs/heads/" prefix
1 parent 150b096 commit a3c7a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function main() {
3636
const inputs = {
3737
title: core.getInput("title"),
3838
body: core.getInput("body"),
39-
branch: core.getInput("branch"),
39+
branch: core.getInput("branch").replace(/^refs\/heads\//, ""),
4040
path: core.getInput("path"),
4141
commitMessage: core.getInput("commit-message"),
4242
author: core.getInput("author")

0 commit comments

Comments
 (0)