Skip to content

Commit

Permalink
ci: fix conditional statements for 'true' values (#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz authored Aug 22, 2024
1 parent 300e79f commit 450cc20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ env:

jobs:
ci:
if: ${{ github.event.inputs.release_package_base == true || github.event.inputs.release_package_main == true }}
if: ${{ github.event.inputs.release_package_base == 'true' || github.event.inputs.release_package_main == 'true' }}
name: CI
uses: ./.github/workflows/ci.yml

release-base:
name: Release Langflow Base
needs: [ci]
if: inputs.release_package_base == true
if: inputs.release_package_base == 'true'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check-version.outputs.version }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

release-main:
name: Release Langflow Main
if: inputs.release_package_main == true
if: inputs.release_package_main == 'true'
needs: [release-base]
runs-on: ubuntu-latest
outputs:
Expand All @@ -130,7 +130,7 @@ jobs:
# If pre-release is true, we need to check if ["a", "b", "rc", "dev", "post"] is in the version string
# if the version string is incorrect, we need to exit the workflow
- name: Check if pre-release
if: inputs.pre_release == true
if: inputs.pre_release == 'true'
run: |
version=$(poetry version --short)
if [[ "${version}" =~ ^([0-9]+\.)?([0-9]+\.)?[0-9]+((a|b|rc|dev|post)([0-9]+))$ ]]; then
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:

call_docker_build_base:
name: Call Docker Build Workflow for Langflow Base
if : inputs.build_docker_base == true
if : inputs.build_docker_base == 'true'
uses: ./.github/workflows/docker-build.yml
strategy:
matrix:
Expand All @@ -201,7 +201,7 @@ jobs:

call_docker_build_main:
name: Call Docker Build Workflow for Langflow
if : inputs.build_docker_main == true
if : inputs.build_docker_main == 'true'
uses: ./.github/workflows/docker-build.yml
strategy:
matrix:
Expand Down

0 comments on commit 450cc20

Please sign in to comment.