Skip to content

Commit

Permalink
Remove a static delay, delete comment while waiting for render
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa committed Nov 19, 2024
1 parent 9002a82 commit d4b5a6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/preview_button.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
workflow_dispatch:


permissions: read-all

concurrency:
Expand Down Expand Up @@ -48,8 +49,11 @@ jobs:
fi
) >> "$GITHUB_OUTPUT"
- name: Delay while the preview URL is built
run: "sleep ${{ steps.customvars.outputs.DELAY_SECONDS }}"
- name: Delete a comment
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # pin@v3
with:
comment-tag: button
mode: delete

- 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 d4b5a6d

Please sign in to comment.