Skip to content

Commit

Permalink
DATAGO-79372: Fix version to bump after publishing (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanRiat1 authored Jul 9, 2024
1 parent d4f5958 commit dd4ef1a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ jobs:
pip install --upgrade pip
pip install hatch
- name: Bump Version
- name: Get Current Version
run: |
CURRENT_VERSION=$(hatch version)
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
hatch version "${{ github.event.inputs.version }}"
NEW_VERSION=$(hatch version)
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
- name: Fail if the current version doesn't exist
if: env.CURRENT_VERSION == ''
Expand All @@ -65,6 +62,12 @@ jobs:
makeLatest: true
generateReleaseNotes: true
tag: ${{ env.CURRENT_VERSION }}

- name: Bump Version
run: |
hatch version "${{ github.event.inputs.version }}"
NEW_VERSION=$(hatch version)
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
- name: Commit new version
run: |
Expand Down

0 comments on commit dd4ef1a

Please sign in to comment.