Update update-changelog.yml

This commit is contained in:
Meysam Hadeli 2023-01-14 01:03:13 +03:30 committed by GitHub
parent 0930763e67
commit fd445e4143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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