check if empty
This commit is contained in:
parent
8eb6214bea
commit
6627464583
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user