Update publish-mix-hex-release.yml
This commit is contained in:
parent
49f866b603
commit
066e3e92e1
|
@ -124,7 +124,6 @@ jobs:
|
||||||
core.exportVariable('package_version', version);
|
core.exportVariable('package_version', version);
|
||||||
core.exportVariable('gh_release_tag_name', ghRelease.tag_name)
|
core.exportVariable('gh_release_tag_name', ghRelease.tag_name)
|
||||||
|
|
||||||
core.info(`language: ${needs.config.outputs.language}`)
|
|
||||||
core.info(`Draft release tag to be created: ${version}`)
|
core.info(`Draft release tag to be created: ${version}`)
|
||||||
|
|
||||||
var srcFilePath = "";
|
var srcFilePath = "";
|
||||||
|
@ -136,11 +135,13 @@ jobs:
|
||||||
srcFilePath = `${needs.config.outputs.working_directory}/mix.exs`;
|
srcFilePath = `${needs.config.outputs.working_directory}/mix.exs`;
|
||||||
srcVersionRegex = /@version\s+"[^"]+"/;
|
srcVersionRegex = /@version\s+"[^"]+"/;
|
||||||
vsnLineTemplate = `@version "${version}"`;
|
vsnLineTemplate = `@version "${version}"`;
|
||||||
|
break;
|
||||||
case 'elixir-erlang':
|
case 'elixir-erlang':
|
||||||
case 'erlang':
|
case 'erlang':
|
||||||
srcFilePath = `${needs.config.outputs.working_directory}/src/${needs.config.outputs.package_name}.app.src`;
|
srcFilePath = `${needs.config.outputs.working_directory}/src/${needs.config.outputs.package_name}.app.src`;
|
||||||
srcVersionRegex = /{vsn:\s+"[^"]+"},/;
|
srcVersionRegex = /{vsn:\s+"[^"]+"},/;
|
||||||
vsnLineTemplate = `{vsn: "${version}"},`;
|
vsnLineTemplate = `{vsn: "${version}"},`;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
core.setFailed('Language not recognized');
|
core.setFailed('Language not recognized');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue