diff --git a/.github/workflows/publish-charts.yaml b/.github/workflows/publish-charts.yaml index a367cf3..9d552f4 100644 --- a/.github/workflows/publish-charts.yaml +++ b/.github/workflows/publish-charts.yaml @@ -9,6 +9,10 @@ permissions: contents: write packages: write +env: + COMMITTER_NAME: "txqueuelen release bot" + COMMITTER_EMAIL: dev@kangmak.es + jobs: release: name: Publish chart to OCI registry @@ -56,8 +60,12 @@ jobs: # Commit to main branch and push changes. Then create a release. - name: Commit and tag release if: ${{ steps.empty.outputs.is-empty == 'false' && steps.held.outputs.is-held == 'false' }} + env: + GH_TOKEN: ${{ github.token }} run: | git add CHANGELOG.md + git config user.name '${{ env.COMMITTER_NAME }}' + git config user.email '${{ env.COMMITTER_EMAIL }}' git commit -m "[no ci] Automatic ${{ steps.next-version.outputs.next-version }} release" git push gh release create "${{ steps.next-version.outputs.next-version }}" -F CHANGELOG.partial.md