Skip to content

Commit

Permalink
Update github action on changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed Nov 1, 2024
1 parent 7d8ec74 commit 117aae6
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,31 @@ jobs:
timeout-minutes: 5

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
ref: main # Ensure you're checking out the main branch

- name: Create update-changelog Branch
run: |
git checkout -b update-changelog
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
latest-version: ${{ github.event.release.tag_name }} # Use tag_name for correct version
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update CHANGELOG
branch: update-changelog # Ensure you're on the update-changelog branch
commit_message: "Update CHANGELOG"
file_pattern: CHANGELOG.md

- name: Push changes and create PR
uses: peter-evans/create-pull-request@v4
with:
branch: update-changelog
title: "Automated Update of CHANGELOG"
body: "This PR was created by GitHub Actions to update the CHANGELOG."

0 comments on commit 117aae6

Please sign in to comment.