Skip to content

Commit

Permalink
chore: Update document workflow to generate changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Nov 10, 2024
1 parent 9a2de0f commit f3a4706
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

changelog:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.adoc
GITHUB_REPO: ${{ github.repository }}

- run: |
git diff
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
git add -A
git commit -m "Update CHANGELOG" || exit 0

0 comments on commit f3a4706

Please sign in to comment.