Skip to content

Commit

Permalink
ci: fixes for release process
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Oct 2, 2023
1 parent 1720e5a commit 6b1ca04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,24 @@ jobs:
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
config: cliff.toml
args: --verbose --latest
- name: Update the changelog
run: |
git checkout main
echo "${{ steps.git-cliff.outputs.contents }}" | sed -i "3r /dev/stdin" CHANGELOG.md
git config --global user.name 'Github Action'
git config --global user.email '[email protected]'
git commit -am "chore: update changelog"
git add CHANGELOG.md
git commit -m "chore: update changelog"
git push
- name: Update CONTRIBUTORS.md
run: |
git checkout main
poetry run poe generate_contributors_md
if [[ $(git diff --stat CONTRIBUTORS.md) != '' ]]; then
git commit -am "chore: update CONTRIBUTORS.md"
git add CONTRIBUTORS.md
git commit -m "chore: update CONTRIBUTORS.md"
git push
fi
- name: Release
Expand Down

0 comments on commit 6b1ca04

Please sign in to comment.