Skip to content

Commit

Permalink
feat: second commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao committed Nov 20, 2023
1 parent 51c8341 commit 22ec91b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 22ec91b

Please sign in to comment.