Skip to content

Commit

Permalink
Remove static delay
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa committed Nov 19, 2024
1 parent 7c882d3 commit 7e0e0f0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/preview_button.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,8 @@ jobs:
else
echo "staging/"
fi
echo -n "DELAY_SECONDS="
if [ -n "${{ vars.DELAY_SECONDS }}" ] ; then
echo "${{ vars.DELAY_SECONDS }}"
else
echo "60"
fi
) >> "$GITHUB_OUTPUT"
- name: Delay while the preview URL is built
run: "sleep ${{ steps.customvars.outputs.DELAY_SECONDS }}"

- name: Wait for site to render
run: curl --retry-delay 10 --retry 18 --retry-all-errors -f -X HEAD -s -o /dev/null "${{ steps.customvars.outputs.BASE_URL }}${{ steps.customvars.outputs.URL_PATH }}"

Expand Down

0 comments on commit 7e0e0f0

Please sign in to comment.