Skip to content

Commit

Permalink
Autobuild: Use a variable instead of hardcoding the release changelog…
Browse files Browse the repository at this point in the history
… path twice

Related: jamulussoftware#2480
  • Loading branch information
hoffie committed Jun 18, 2022
1 parent abd6fa7 commit b7745de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
publish_to_release: ${{ steps.get-build-vars.outputs.PUBLISH_TO_RELEASE }}
upload_url: ${{ steps.create-release.outputs.upload_url }}
build_version: ${{ steps.get-build-vars.outputs.BUILD_VERSION }}
env:
release_changelog_path: ./.github_release_changelog.md

steps:
- name: Checkout code
Expand All @@ -73,7 +75,7 @@ jobs:

- name: Extract Changelog for the Github release body
if: steps.get-build-vars.outputs.PUBLISH_TO_RELEASE == 'true'
run: ./.github/autobuild/extractVersionChangelog.pl ChangeLog ${{ steps.get-build-vars.outputs.JAMULUS_PRO_VERSION }} > autoLatestChangelog.md
run: ./.github/autobuild/extractVersionChangelog.pl ChangeLog ${{ steps.get-build-vars.outputs.JAMULUS_PRO_VERSION }} > ${{ env.release_changelog_path }}

- name: Remove release ${{steps.get-build-vars.outputs.RELEASE_TAG}}, if existing
if: steps.get-build-vars.outputs.PUBLISH_TO_RELEASE == 'true'
Expand All @@ -94,7 +96,7 @@ jobs:
with:
tag_name: ${{ steps.get-build-vars.outputs.RELEASE_TAG }}
release_name: ${{ steps.get-build-vars.outputs.RELEASE_TITLE }}
body_path: autoLatestChangelog.md
body_path: ${{ env.release_changelog_path }}
prerelease: ${{ steps.get-build-vars.outputs.IS_PRERELEASE }}
draft: false

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ distributions/jamulus-server.desktop
Debug-iphoneos/
Jamulus.xcodeproj
jamulus_plugin_import.cpp
autoLatestChangelog.md
.github_release_changelog.md
debian/

0 comments on commit b7745de

Please sign in to comment.