From 791bb190549009f4c42701372dc2b528ba748437 Mon Sep 17 00:00:00 2001 From: rootware Date: Tue, 26 Jul 2022 20:18:08 +0800 Subject: [PATCH 1/2] added final step to publish changelog --- .github/workflows/cd.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1d75c41..bca2812 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -52,3 +52,10 @@ jobs: echo "## Changelog" >> this_version_changelog.md cat CHANGELOG.md | sed -n '/^## \['"$version"'\]/,/^## /p' | head -n -1 | tail -n +2 >> this_version_changelog.md echo "[Full Changelog](https://github.com/brootware/PyRedactKit/blob/v$version/CHANGELOG.md)" >> this_version_changelog.md + + - name: Publish Changelog + uses: softprops/action-gh-release@v1 + with: + body_path: this_version_changelog.md + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a74cee5817aa8d31fe94f033f152e2c10e406679 Mon Sep 17 00:00:00 2001 From: rootware Date: Tue, 26 Jul 2022 20:19:59 +0800 Subject: [PATCH 2/2] name changed to changelog token --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bca2812..237c1bd 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -58,4 +58,4 @@ jobs: with: body_path: this_version_changelog.md env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}