Skip to content

Commit

Permalink
added auto update changelog workflow & running auto update once a week
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilsarwe committed Jan 3, 2022
1 parent a458d15 commit 57364db
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Auto Update Icons
on:
push:
schedule:
- cron: '0 0 * * *'
- cron: '0 12 * * 1'

jobs:
generate:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- 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: Update CHANGELOG
file_pattern: CHANGELOG.md

0 comments on commit 57364db

Please sign in to comment.