Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: update release new version workflow to not generate release notes #2941

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"
Loading