From 2744e3d4b99e557b579e95dc26331d7fe9463510 Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:20:21 -0300 Subject: [PATCH] Update publish-python-sdk.yml --- .github/workflows/publish-python-sdk.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-python-sdk.yml b/.github/workflows/publish-python-sdk.yml index e729b6f..9ba9f08 100644 --- a/.github/workflows/publish-python-sdk.yml +++ b/.github/workflows/publish-python-sdk.yml @@ -27,12 +27,20 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine build requests packaging - - name: Check if version is incremented - id: check_version + - name: Run version check script + id: version_check_script + run: | + VERSION_INCREMENTED=$(python .github/scripts/check_version_has_incremented.py python ./apps/python-sdk/firecrawl firecrawl-py) + echo "VERSION_INCREMENTED=$VERSION_INCREMENTED" >> $GITHUB_ENV + + - name: Debug output of version check run: | - VERSION_INCREMENTED=$(python .github/scripts/check_version_has_incremented.py python ./apps/python-sdk/firecrawl firecrawl-py) - echo "VERSION_INCREMENTED=$VERSION_INCREMENTED" >> $GITHUB_ENV - echo "Published Version: ${{ env.VERSION_INCREMENTED }}" + echo "Output of VERSION_INCREMENTED: '${{ env.VERSION_INCREMENTED }}'" + + - name: Set published version environment variable + if: env.VERSION_INCREMENTED == 'true' + run: | + echo "Published Version: ${{ env.VERSION_INCREMENTED }}" - name: Build the package if: env.VERSION_INCREMENTED == 'true'