Skip to content

Commit

Permalink
chore: generate CHANGELOG.md & do sparse-checkout on changelog gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsch318 committed Mar 11, 2024
1 parent 06725de commit 78ea2b6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
sparse-checkout: CHANGELOG.md
fetch-depth: 0
- name: Git Cliff CHANGELOG generation
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: -o CHANGELOG.md
- name: Git Cliff generation
uses: orhun/git-cliff-action@v3
id: git-cliff
Expand All @@ -38,8 +44,7 @@ jobs:
set +e
git add CHANGELOG.md
git commit -m "Update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git master
git push
build-push:
needs: changelog
runs-on: ubuntu-latest
Expand Down

0 comments on commit 78ea2b6

Please sign in to comment.