Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
chore: test auto changelog Ci
Browse files Browse the repository at this point in the history
  • Loading branch information
soulsam480 committed Sep 3, 2021
1 parent 84a5848 commit 3a4c98c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate changelog

on:
push:
branches:
- dev

jobs:
generate-changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_types: other,perf

- name: Read CHANGELOG.md
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./CHANGELOG.md

- name: Write to CHANGELOG.md
uses: DamianReeves/write-file-action@master
with:
path: ./CHANGELOG.md
contents: ${{ steps.changelog.outputs.changelog }}${{ steps.package.outputs.content }}
write-mode: overwrite

- name: Commit and push CHANGELOG.md
uses: EndBug/add-and-commit@v7
with:
add: CHANGELOG.md
message: 'chore: Update CHANGELOG.md'
branch: dev

0 comments on commit 3a4c98c

Please sign in to comment.