From 7ed1412f6710e889c569c71a9a3e9d7bffe3e1b2 Mon Sep 17 00:00:00 2001 From: Ramakant Gangwar Date: Tue, 13 Dec 2022 07:47:17 +0530 Subject: [PATCH] Update update-changelog.yml --- .github/workflows/update-changelog.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index fa56639..572d9dd 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -1,3 +1,4 @@ +# .github/workflows/update-changelog.yaml name: "Update Changelog" on: @@ -12,17 +13,17 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: - ref: main + ref: ${{ github.event.release.target_commitish }} - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 with: - latest-version: ${{ github.event.release.name }} + latest-version: ${{ github.event.release.tag_name }} release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: - branch: main + branch: ${{ github.event.release.target_commitish }} commit_message: Update CHANGELOG file_pattern: CHANGELOG.md