Strip refs/heads/ from the input tag.
This patch strips refs/heads/ from the input tag to make it easier to use the action with pushes on branches.
This commit is contained in:
parent
2f92806c5d
commit
94502fe175
@ -104,7 +104,7 @@ async function run(): Promise<void> {
|
||||
// Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
|
||||
const token = core.getInput('repo_token', {required: true})
|
||||
const file = core.getInput('file', {required: true})
|
||||
const tag = core.getInput('tag', {required: true}).replace('refs/tags/', '')
|
||||
const tag = core.getInput('tag', {required: true}).replace('refs/tags/', '').replace('refs/heads/', '')
|
||||
|
||||
const file_glob = core.getInput('file_glob') == 'true' ? true : false
|
||||
const overwrite = core.getInput('overwrite') == 'true' ? true : false
|
||||
|
Loading…
Reference in New Issue
Block a user