mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-29 09:18:13 +08:00
Update update-changelog.yml
This commit is contained in:
parent
0930763e67
commit
fd445e4143
44
.github/workflows/update-changelog.yml
vendored
44
.github/workflows/update-changelog.yml
vendored
@ -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 }}
|
with:
|
||||||
npm run overrideChangelog
|
ref: main
|
||||||
- name: Create Pull Request
|
|
||||||
uses: peter-evans/create-pull-request@v3
|
- name: Update Changelog
|
||||||
with:
|
uses: stefanzweifel/changelog-updater-action@v1
|
||||||
commit-message: update changelog
|
with:
|
||||||
title: Update Changelog
|
release-notes: ${{ github.event.release.body }}
|
||||||
body: Update changelog to reflect release changes
|
latest-version: ${{ github.event.release.name }}
|
||||||
branch: update-changelog
|
|
||||||
base: main
|
- name: Commit updated CHANGELOG
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
branch: main
|
||||||
|
commit_message: Update CHANGELOG
|
||||||
|
file_pattern: CHANGELOG.md
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user