Skip to content

Commit

Permalink
CI: update release new version workflow to not generate release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao committed Nov 21, 2023
1 parent f8261a9 commit 4e909a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 115 deletions.
89 changes: 0 additions & 89 deletions .github/git-cliff-release.toml

This file was deleted.

27 changes: 1 addition & 26 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ jobs:
crate: cocogitto
version: 5.4.0

- name: Install git-cliff
uses: baptiste0928/[email protected]
with:
crate: git-cliff
version: 1.2.0

- name: Install changelog-gh-usernames
uses: baptiste0928/[email protected]
with:
crate: changelog-gh-usernames
git: https://github.com/SanchithHegde/changelog-gh-usernames
rev: dab6da3ff99dbbff8650c114984c4d8be5161ac8

- name: Set Git Configuration
shell: bash
run: |
Expand Down Expand Up @@ -87,7 +74,7 @@ jobs:
PREVIOUS_TAG="$(git tag --sort='version:refname' --merged | tail --lines 1)"
if [[ "$(cog bump --auto --dry-run)" == *"No conventional commits for your repository that required a bump"* ]]; then
NEW_TAG="$(cog bump --patch --dry-run)"
elif [[ "${PREVIOUS_TAG}" != "${NEW_TAG}" ]]; then
else
NEW_TAG="$(cog bump --auto --dry-run)"
fi
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
Expand All @@ -106,15 +93,3 @@ jobs:
run: |
git push
git push --tags
- name: Generate release notes and create GitHub release
shell: bash
if: ${{ env.NEW_TAG != env.PREVIOUS_TAG }}
env:
GITHUB_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.AUTO_RELEASE_PAT }}
# Need to consider commits inclusive of previous tag to generate diff link between versions.
# This would also then require us to remove the last few lines from the changelog.
run: |
git-cliff --config .github/git-cliff-release.toml "${PREVIOUS_TAG}^..${NEW_TAG}" | changelog-gh-usernames | sed "/## ${PREVIOUS_TAG#v}/,\$d" > release-notes.md
gh release create "${NEW_TAG}" --notes-file release-notes.md --verify-tag --title "Hyperswitch ${NEW_TAG}"

0 comments on commit 4e909a4

Please sign in to comment.