Skip to content

Commit

Permalink
ci: preview for 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Jan 7, 2024
1 parent a628fc2 commit 9777254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ jobs:
You can stop the preview by clicking "Cancel" on the [GitHub Action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
- name: Wait for 60 minutes before timing out (unless overwritten)
- name: Wait for 10 minutes before timing out (unless overwritten)
run: |
echo "Tunnel URL is ${{ steps.tunnel-url.outputs.tunnel-url }}"
timeout 61m sleep 3600
timeout 11m sleep 600
# Gracefully exit if the timeout hits.
exit 0
Expand All @@ -172,7 +172,7 @@ jobs:
number: ${{ github.event.issue.number || github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
message: |
🖼️ Preview Environment exceeded the maximum time of 60 minutes. To start it again, comment `/preview` on this PR.
🖼️ Preview Environment exceeded the maximum time of 10 minutes. To start it again, comment `/preview` on this PR.
- name: Close comment when cancelled
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ cancelled() }}
Expand Down

0 comments on commit 9777254

Please sign in to comment.