From 98008db9378a3d9708f4ffd747508082df7b42d6 Mon Sep 17 00:00:00 2001 From: Jerry Gamblin Date: Tue, 24 Nov 2026 08:00:03 -0600 Subject: [PATCH] Retry GitHub Pages deploy once on transient failure deploy-pages intermittently fails with "Fetching artifact metadata failed" after a successful artifact upload. Make the first attempt continue-on-error, wait 60s, and retry once. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/patchthis.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/patchthis.yml b/.github/workflows/patchthis.yml index afe3b803..496a0224 100644 --- a/.github/workflows/patchthis.yml +++ b/.github/workflows/patchthis.yml @@ -226,7 +226,7 @@ jobs: id-token: write environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url || steps.deployment_retry.outputs.page_url }} steps: - uses: actions/checkout@v7 with: @@ -237,6 +237,18 @@ jobs: uses: actions/upload-pages-artifact@v5 with: path: 'web' + # deploy-pages intermittently fails with "Fetching artifact metadata failed" + # even after a successful upload. Retry once after a short wait. - name: Deploy to GitHub Pages id: deployment + continue-on-error: true + uses: actions/deploy-pages@v5 + + - name: Wait before retrying deploy + if: steps.deployment.outcome == 'failure' + run: sleep 60 + + - name: Deploy to GitHub Pages (retry) + id: deployment_retry + if: steps.deployment.outcome == 'failure' uses: actions/deploy-pages@v5