Skip to content

Commit

Permalink
Update publish-mix-hex-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele authored Feb 5, 2024
1 parent 889541b commit 7f13001
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-mix-hex-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ jobs:
srcFilePath = `${needs.config.outputs.working_directory}/mix.exs`;
srcVersionRegex = /@version\s+"[^"]+"/;
vsnLineTemplate = `@version "${version}"`;
core.setOutput('srcFilePath', srcFilePath);
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}"},`;
core.setOutput('srcFilePath', srcFilePath);
break;
default:
core.setFailed('Language not recognized');
Expand Down Expand Up @@ -204,8 +206,7 @@ jobs:
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6
with:
add-paths: |
${{ needs.config.outputs.working_directory }}/mix.exs
${{ needs.config.outputs.working_directory }}/src/${{ needs.config.outputs.package_name }}.app.src
${{ steps.update-files.outputs.srcFilePath }}
base: main
branch: "${{ needs.config.outputs.tag_prefix }}${{ env.package_version }}-release"
commit-message: "Prep release v${{ env.package_version }}"
Expand Down

0 comments on commit 7f13001

Please sign in to comment.