Skip to content

Commit

Permalink
[hotfix] Fix git commit and release step
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Manuel "Kang" Perez committed Jun 17, 2024
1 parent 7d6250e commit c1cefb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ permissions:
contents: write
packages: write

env:
COMMITTER_NAME: "txqueuelen release bot"
COMMITTER_EMAIL: [email protected]

jobs:
release:
name: Publish chart to OCI registry
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c1cefb1

Please sign in to comment.