Skip to content

Commit

Permalink
add step to get previous release version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kai committed Feb 13, 2023
1 parent 69dbbd1 commit 85dd439
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BP_PAT_TOKEN }}

- name: Get previous version
- name: Get previous release version
run: |
echo "PREV_VER=$(cat pyproject.toml | grep -o -E '(version\s=\s)([[:punct:]])([0-9]+\.[0-9]+\.[0-9]+.+)([[:punct:]])' | cut -d ' ' -f 3 | tr -d '"')" >> $GITHUB_ENV
- name: Get previous bump version
env:
PREV_VER: ${{ env.PREV_VER }}
run: |
Expand Down

0 comments on commit 85dd439

Please sign in to comment.