This commit is contained in:
Sven-Hendrik Haase
2020-08-10 05:21:17 +02:00
parent 0d3c327d15
commit ec0ba8651f
4 changed files with 9 additions and 3 deletions

View File

@@ -104,7 +104,10 @@ 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/', '').replace('refs/heads/', '')
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