From 6b1ca04cd8edbcf46df6952c35b11077312c681f Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Mon, 2 Oct 2023 16:08:13 -0500 Subject: [PATCH] ci: fixes for release process --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07d7641b..f5df030b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 'github.action@users.noreply.github.com' - 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