diff --git a/src/main.ts b/src/main.ts index 0ec155e..de10347 100644 --- a/src/main.ts +++ b/src/main.ts @@ -104,7 +104,7 @@ async function run(): Promise { // 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