Skip to content

Commit

Permalink
fix: conds
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 30, 2023
1 parent 128958e commit 32b7af1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,18 @@ runs:
files: 'ape-config.yaml'

- run: |
if [[ ${{ steps.check-ape-config-yaml.outputs.files_exists }} == 'true' ]]; then
if [[ "${{ steps.check-ape-config-yaml.outputs.files_exists }}" == "true" ]]; then
version_present=$(sed -n '/^plugins:/,/^[^ ]/{/version:/p;}' "ape-config.yaml" | grep -c version)
else
version_present=0
fi
if [[ "$version_present" == "1" ]] && [[ ${{ inputs.ape-plugins-list }} == "" ]]; then
if [[ "${version_present}" == "1" ]] && [[ ${{ inputs.ape-plugins-list }} == "" ]]; then
plugins_value="."
elif [[ ${{ inputs.ape-plugins-list }} == "" ]]; then
elif [[ "${{ inputs.ape-plugins-list }}" == "" ]]; then
plugins_value="--upgrade ."
else
plugins_value=${{ inputs.ape-plugins-list }}
plugins_value="${{ inputs.ape-plugins-list }}"
fi
ape plugins install "$plugins_value"
Expand Down

0 comments on commit 32b7af1

Please sign in to comment.