mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-16 07:26:25 +08:00
31 lines
770 B
YAML
31 lines
770 B
YAML
on:
|
|
release:
|
|
types:
|
|
- released
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
# Every push to main will create a new release and deploy to production.
|
|
jobs:
|
|
update:
|
|
name: Update Changelog
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Update Changelog
|
|
uses: stefanzweifel/changelog-updater-action@v1
|
|
with:
|
|
latest-version: ${{ github.event.release.name }}
|
|
release-notes: ${{ github.event.release.body }}
|
|
|
|
- name: Commit updated Changelog
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
branch: main
|
|
commit_message: 'docs(changelog): update changelog'
|
|
file_pattern: CHANGELOG.md
|