-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix] Fix git commit and release step
- Loading branch information
Juan Manuel "Kang" Perez
committed
Jun 17, 2024
1 parent
7d6250e
commit 3f79806
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -56,11 +60,15 @@ 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: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git add CHANGELOG.md | ||
git commit -m "[no ci] Automatic ${{ steps.next-version.outputs.next-version }} release" | ||
git config user.name '${{ env.COMMITTER_NAME }}' | ||
git config user.email '${{ env.COMMITTER_EMAIL }}' | ||
git commit -m "[no ci] Automatic ${{ steps.version.outputs.next-version }} release" | ||
git push | ||
gh release create "${{ steps.next-version.outputs.next-version }}" -F CHANGELOG.partial.md | ||
gh release create "${{ steps.version.outputs.next-version }}" -F CHANGELOG.partial.md | ||
# Login to GitHub Packages to upload the chart to the OCI repository. | ||
- name: Helm login | ||
|