update release action (#898)
authorJozef Kruszynski <60214390+jozefKruszynski@users.noreply.github.com>
Fri, 27 Oct 2023 21:19:11 +0000 (23:19 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Oct 2023 21:19:11 +0000 (23:19 +0200)
* update release action

* lint

---------

Co-authored-by: Jozef Kruszynski <jozef.kruszynski@gmail.com>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
.github/workflows/release.yml

index 8f72a0ab18dfddf7f1da1e185496fd808423beef..fca8810f23bd9d5d696dcfde92319c66d5256b0f 100644 (file)
@@ -101,9 +101,20 @@ jobs:
           build-args: |
             "MASS_VERSION=${{ needs.build-and-publish-pypi.outputs.version }}"
 
+  release-notes-update:
+    name: Updates the release notes and changelog
+    needs: [ build-and-publish-pypi, build-and-push-container-image ]
+    runs-on: ubuntu-latest
+    steps:
+      - name: Update changelog and release notes including frontend notes
+        uses: music-assistant/release-notes-merge-action@main
+        with:
+          github_token: ${{ secrets.PRIVILEGED_GITHUB_TOKEN }}
+          release_tag: ${{ needs.build-and-publish-pypi.outputs.version }}
+
   addon-version-update:
     name: Updates the Addon repository with the new version
-    needs: [ build-and-publish-pypi, build-and-push-container-image ]
+    needs: [ build-and-publish-pypi, build-and-push-container-image, release-notes-update ]
     runs-on: ubuntu-latest
     steps:
       - name: Push new version number to addon config