Update update-changelog.yml

This commit is contained in:
Meysam Hadeli 2023-01-14 00:50:35 +03:30 committed by GitHub
parent e5113ec424
commit 7cd1ff02b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +1,24 @@
name: Update Changelog name: "update changelog"
on: on:
release: release:
types: types: [published]
- released
jobs: jobs:
update: update-changelog:
name: Update Changelog
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - uses: actions/checkout@v2
uses: actions/checkout@v2
- name: Update changelog
- name: Update Changelog run: |
uses: stefanzweifel/changelog-updater-action@v1 npm install github-release-notes
with: export GREN_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
latest-version: ${{ github.event.release.name }} npm run overrideChangelog
release-notes: ${{ github.event.release.body }} - name: Create Pull Request
uses: peter-evans/create-pull-request@v3
- name: Commit updated Changelog with:
uses: stefanzweifel/git-auto-commit-action@v4 commit-message: update changelog
with: title: Update Changelog
branch: main body: Update changelog to reflect release changes
commit_message: 'docs(changelog): update changelog' branch: update-changelog
file_pattern: CHANGELOG.md base: main