-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: update release new version workflow to not generate release notes
- Loading branch information
1 parent
f8261a9
commit 4e909a4
Showing
2 changed files
with
1 addition
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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}" |