-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release Created | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
update-release-notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Generate Changelog | ||
id: changelog | ||
uses: infocus7/[email protected] | ||
with: | ||
changelog-directory: 'changelogs' | ||
release-tag-name: ${{ github.ref_name }} | ||
- name: Download Changelog # This is needed because the action outputs the changelog to an artifact (file). | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: changelog | ||
- name: Update Release Notes | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO_NAME: ${{ github.repository }} | ||
RELEASE_ID: ${{ github.event.release.id }} | ||
run: | | ||
changelog_content=$(jq -Rs . < changelog_output.md) # Convert the changelog to a JSON string so we can send it. | ||
curl -L -X PATCH \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
"https://api.github.com/repos/$REPO_NAME/releases/$RELEASE_ID" \ | ||
-d "{\"body\": $changelog_content}" |
2 changes: 1 addition & 1 deletion
2
.github/workflows/release.yaml → .github/workflows/release-publish.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: Release Published | ||
|
||
on: | ||
release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
enhancement: | ||
- Add support for video preview generation when creating a music cover video. | ||
ci: | ||
- Add changelog generation automation. |