-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51c8341
commit 22ec91b
Showing
1 changed file
with
22 additions
and
22 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 |
---|---|---|
|
@@ -8,23 +8,23 @@ jobs: | |
name: Release a new version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
# - name: Generate a token | ||
# id: generate_token | ||
# uses: actions/create-github-app-token@v1 | ||
# with: | ||
# app-id: ${{ secrets.APP_ID }} | ||
# private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ steps.generate_token.outputs.token }} | ||
# with: | ||
# fetch-depth: 0 | ||
# token: ${{ steps.generate_token.outputs.token }} | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable 2 weeks ago | ||
# - name: Install Rust | ||
# uses: dtolnay/rust-toolchain@master | ||
# with: | ||
# toolchain: stable 2 weeks ago | ||
|
||
- name: Install cocogitto | ||
uses: baptiste0928/[email protected] | ||
|
@@ -38,18 +38,18 @@ jobs: | |
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: 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: | | ||
git config --local user.name 'hyperswitch-bot[bot]' | ||
git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com' | ||
git config --local user.name 'Chethan' | ||
git config --local user.email 'chethanrao5355@gmail.com' | ||
- name: Obtain previous and new tag information | ||
shell: bash | ||
|
@@ -58,7 +58,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 | ||
|