Update publish-mix-hex-release.yml

This commit is contained in:
Bryan Naegele 2024-02-04 17:59:52 -07:00 committed by GitHub
parent 49f866b603
commit 066e3e92e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,6 @@ jobs:
core.exportVariable('package_version', version);
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}`)
var srcFilePath = "";
@ -136,11 +135,13 @@ jobs:
srcFilePath = `${needs.config.outputs.working_directory}/mix.exs`;
srcVersionRegex = /@version\s+"[^"]+"/;
vsnLineTemplate = `@version "${version}"`;
break;
case 'elixir-erlang':
case 'erlang':
srcFilePath = `${needs.config.outputs.working_directory}/src/${needs.config.outputs.package_name}.app.src`;
srcVersionRegex = /{vsn:\s+"[^"]+"},/;
vsnLineTemplate = `{vsn: "${version}"},`;
break;
default:
core.setFailed('Language not recognized');
}