diff --git a/.gitea/workflows/setPackageVersion.yaml b/.gitea/workflows/setPackageVersion.yaml index 6b82263..2c6b629 100644 --- a/.gitea/workflows/setPackageVersion.yaml +++ b/.gitea/workflows/setPackageVersion.yaml @@ -24,7 +24,7 @@ jobs: echo "Setting Version to ${{ inputs.version }}" git_path=$(pwd) - if [ "${{ inputs.packagePath }}" != "null" ]; then + if [ -n "${{ inputs.packagePath }}" ]; then echo "Change Directory to ${{ inputs.packagePath }}" cd ${{ inputs.packagePath }} fi @@ -41,7 +41,7 @@ jobs: fi package_name=package.json - if [ "${{ inputs.packagePath }}" != "null" ]; then + if [ -n "${{ inputs.packagePath }}" ]; then package_name="${{ inputs.packagePath }}package.json" fi