mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-02 10:52:53 +08:00
Update update-changelog.yml
This commit is contained in:
parent
e5113ec424
commit
7cd1ff02b1
36
.github/workflows/update-changelog.yml
vendored
36
.github/workflows/update-changelog.yml
vendored
@ -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
|
||||||
uses: stefanzweifel/changelog-updater-action@v1
|
run: |
|
||||||
|
npm install github-release-notes
|
||||||
|
export GREN_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
npm run overrideChangelog
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
latest-version: ${{ github.event.release.name }}
|
commit-message: update changelog
|
||||||
release-notes: ${{ github.event.release.body }}
|
title: Update Changelog
|
||||||
|
body: Update changelog to reflect release changes
|
||||||
- name: Commit updated Changelog
|
branch: update-changelog
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
base: main
|
||||||
with:
|
|
||||||
branch: main
|
|
||||||
commit_message: 'docs(changelog): update changelog'
|
|
||||||
file_pattern: CHANGELOG.md
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user