mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
infra: fix prev tag calculation (#27890)
This commit is contained in:
parent
5745f3bf78
commit
14a71a6e77
2
.github/workflows/_release.yml
vendored
2
.github/workflows/_release.yml
vendored
@ -95,7 +95,7 @@ jobs:
|
|||||||
PKG_NAME: ${{ needs.build.outputs.pkg-name }}
|
PKG_NAME: ${{ needs.build.outputs.pkg-name }}
|
||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.build.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
PREV_TAG="${curr_version%.*}.$(( ${curr_version##*.} - 1 ))"; [[ "${curr_version##*.}" -eq 0 ]] && PREV_TAG=""
|
PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG=""
|
||||||
|
|
||||||
# backup case if releasing e.g. 0.3.0, looks up last release
|
# backup case if releasing e.g. 0.3.0, looks up last release
|
||||||
# note if last release (chronologically) was e.g. 0.1.47 it will get
|
# note if last release (chronologically) was e.g. 0.1.47 it will get
|
||||||
|
Loading…
Reference in New Issue
Block a user