Skip to content

Commit

Permalink
Add retry strategy to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Aug 8, 2024
1 parent 4b7352e commit 3ce713d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
contents: write
pages: write

strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- attempt: 1
- attempt: 2
- attempt: 3


steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -32,8 +42,14 @@ jobs:
- run: pip install -r requirements.txt

- name: Render and Publish
id: long-running-step
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 20

- name: Check if step succeeded
if: ${{ steps.long-running-step.outcome == 'failure' }}
run: exit 1

0 comments on commit 3ce713d

Please sign in to comment.