Skip to content

Commit

Permalink
Merge pull request #24 from reload/path
Browse files Browse the repository at this point in the history
Fix path
  • Loading branch information
arnested authored Aug 20, 2024
2 parents 6e49578 + 3613469 commit 76b2be4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ runs:
export PLATFORMSH_CLI_TOKEN=${{ inputs.PLATFORMSH_KEY }};
curl -fsSL https://raw.githubusercontent.com/platformsh/cli/main/installer.sh | bash
export PATH="/home/runner/.local/bin:{$PATH}"
if [[ "${{ inputs.ALLOW_CANCEL_CRON }}" == 1 ]]; then \
~/.platformsh/bin/platform activity:cancel --type=environment.cron; \
platform activity:cancel --type=environment.cron; \
fi
DETECTION_TRIES=0
Expand All @@ -86,7 +87,7 @@ runs:
while [ $TRIES -le $MAX_TRIES ]; do \
TRIES=$((TRIES+1)); \
ACTS=$(~/.platformsh/bin/platform activities --format=plain --columns=id,state --incomplete --no-header --no-interaction --type=${{ inputs.ACTIVITY_TYPES }} 2>&1 || true); \
ACTS=$(platform activities --format=plain --columns=id,state --incomplete --no-header --no-interaction --type=${{ inputs.ACTIVITY_TYPES }} 2>&1 || true); \
echo "$ACTS"; \
echo "----------------------"; \
Expand All @@ -100,7 +101,7 @@ runs:
echo ""
STATUS=$(~/.platformsh/bin/platform env:info status 2>&1 || true)
STATUS=$(platform env:info status 2>&1 || true)
if [[ "$STATUS" =~ "inactive" ]]; then \
echo "PlatformSH reports that the environment is not active. This might be because you have run out of available environment slots. Try to run 'platform env:activate -e ${{ inputs.ENVIRONMENT_NAME }} -p ${{ inputs.PLATFORMSH_ID }}'"; \
Expand All @@ -110,7 +111,7 @@ runs:
exit 2; \
fi
URL=$(~/.platformsh/bin/platform env:url -1 --pipe)
URL=$(platform env:url -1 --pipe)
CURL_HTTP_STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" $URL)
Expand Down

0 comments on commit 76b2be4

Please sign in to comment.