chore(create-release.yml): remove unnecessary version check step to simplify workflow and improve readability
This commit is contained in:
parent
969ac6eb49
commit
8bc241267d
1 changed files with 0 additions and 16 deletions
16
.github/workflows/create-release.yml
vendored
16
.github/workflows/create-release.yml
vendored
|
|
@ -31,22 +31,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Check Version
|
|
||||||
id: check-version
|
|
||||||
run: |
|
|
||||||
if [ "${{ inputs.release_type }}" == "base" ]; then
|
|
||||||
version=$(cd src/backend/base && poetry version --short)
|
|
||||||
last_released_version=$(curl -s "https://pypi.org/pypi/langflow-base/json" | jq -r '.releases | keys | .[]' | sort -V | tail -n 1)
|
|
||||||
else
|
|
||||||
version=$(poetry version --short)
|
|
||||||
last_released_version=$(curl -s "https://pypi.org/pypi/langflow/json" | jq -r '.releases | keys | .[]' | sort -V | tail -n 1)
|
|
||||||
fi
|
|
||||||
if [ "$version" = "$last_released_version" ]; then
|
|
||||||
echo "Version $version is already released. Skipping release."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo version=$version >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
- name: Build project for distribution
|
- name: Build project for distribution
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.release_type }}" == "base" ]; then
|
if [ "${{ inputs.release_type }}" == "base" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue