Skip to content

Commit b12d40a

Browse files
Support dynamic branch names by replacing {timestamp} with the current time in inputs parser
1 parent eefd141 commit b12d40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/inputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const LABELS = {
6868
export const parse = () => {
6969
const token = getInput(TOKEN.name, { required: true })
7070
const path = getInput(PATH.name) || PATH.defaultValue
71-
const branchName = getInput(BRANCH_NAME.name) || BRANCH_NAME.defaultValue
71+
const branchName = (getInput(BRANCH_NAME.name) || BRANCH_NAME.defaultValue).replace('{timestamp}', Date.now().toString())
7272

7373
const commitTitle = getInput(COMMIT_TITLE.name) || COMMIT_TITLE.defaultValue
7474
const commitBody = getInput(COMMIT_BODY.name) || COMMIT_BODY.defaultValue

0 commit comments

Comments
 (0)