From 48f982dd7c46ae64b6de9819057fd462fe3fb93b Mon Sep 17 00:00:00 2001 From: Se7en Date: Sat, 18 Jan 2025 13:57:49 +0800 Subject: [PATCH] fix release github action --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 998a835..dc6faea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python uses: actions/setup-python@v4 @@ -41,6 +42,14 @@ jobs: tomli_w.dump(data, f) ' + - name: Commit and push updated version + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add pyproject.toml + git commit -m "chore: update version to ${{ env.VERSION }}" + git push + - name: Generate changelog run: | git-cliff --output CHANGELOG.md