Update publish-mix-hex-release.yml
This commit is contained in:
parent
889541b61e
commit
7f130017b2
|
@ -135,12 +135,14 @@ 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}"`;
|
||||||
|
core.setOutput('srcFilePath', srcFilePath);
|
||||||
break;
|
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}"},`;
|
||||||
|
core.setOutput('srcFilePath', srcFilePath);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
core.setFailed('Language not recognized');
|
core.setFailed('Language not recognized');
|
||||||
|
@ -204,8 +206,7 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6
|
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6
|
||||||
with:
|
with:
|
||||||
add-paths: |
|
add-paths: |
|
||||||
${{ needs.config.outputs.working_directory }}/mix.exs
|
${{ steps.update-files.outputs.srcFilePath }}
|
||||||
${{ needs.config.outputs.working_directory }}/src/${{ needs.config.outputs.package_name }}.app.src
|
|
||||||
base: main
|
base: main
|
||||||
branch: "${{ needs.config.outputs.tag_prefix }}${{ env.package_version }}-release"
|
branch: "${{ needs.config.outputs.tag_prefix }}${{ env.package_version }}-release"
|
||||||
commit-message: "Prep release v${{ env.package_version }}"
|
commit-message: "Prep release v${{ env.package_version }}"
|
||||||
|
|
Loading…
Reference in New Issue