Skip to content

Commit

Permalink
added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
veds12 authored and KelvinYang0320 committed Jan 15, 2023
1 parent bbc3342 commit 55ffd2a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/changelog_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate Changelog
on:
push:
branches:
- dev

jobs:
generate_changelog:
name: Update Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout dev
uses: actions/checkout@v2

- name: Generate changelog
uses: charmixer/[email protected]
with:
token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }}

- name: Commit files
run: |
git config --local user.email ${{ secrets.AIDUDEZZZ_BOT_EMAIL }}
git config --local user.name ${{ secrets.AIDUDEZZZ_BOT_USER }}
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo "push=true" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md"
- name: Push changes
if: env.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }}
branch: dev

0 comments on commit 55ffd2a

Please sign in to comment.