diff --git a/.github/workflows/forkdiff-pages.yml b/.github/workflows/forkdiff-pages.yml index ceb6ae3d5c..6777acc29a 100644 --- a/.github/workflows/forkdiff-pages.yml +++ b/.github/workflows/forkdiff-pages.yml @@ -68,7 +68,7 @@ jobs: needs: render environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url || steps.deployment-retry.outputs.page_url }} runs-on: ubuntu-latest timeout-minutes: 20 permissions: @@ -114,7 +114,22 @@ jobs: with: path: tmp/pages + # deploy-pages looks the github-pages artifact up in this run's artifact + # list as soon as it starts, and that list can lag the upload above: the + # first try then fails with "No artifacts named github-pages were found" + # (seen on 2026-11-14). Only when the first try failed before it created a + # deployment (no page_url), wait and try once more. - name: Deploy to GitHub Pages if: steps.pages.outputs.enabled == 'true' id: deployment + continue-on-error: true + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 + + - name: Wait before the second try + if: steps.pages.outputs.enabled == 'true' && steps.deployment.outcome == 'failure' && steps.deployment.outputs.page_url == '' + run: sleep 20 + + - name: Deploy to GitHub Pages (second try) + if: steps.pages.outputs.enabled == 'true' && steps.deployment.outcome == 'failure' && steps.deployment.outputs.page_url == '' + id: deployment-retry uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/FORKDIFF.md b/FORKDIFF.md index 16534abb85..b4fefc827f 100644 --- a/FORKDIFF.md +++ b/FORKDIFF.md @@ -42,7 +42,9 @@ script under PRoot, built from pinned source with its missing ARM64 `faccessat2` entry added. PRoot fakes root through ptrace and is not an isolation boundary; the job VM is. The Fedora x86_64 job keeps its hosted runner: emulating x86 on ARM was not qualified. The GitHub-hosted Pages job still packages and publishes -the rendered artifact through its protected environment. The disabled native CodeQL workflow keeps its separate routing +the rendered artifact through its protected environment. If its first deploy +fails before it creates a deployment (the packaged artifact is not listed yet), +it waits 20 seconds and tries once more. The disabled native CodeQL workflow keeps its separate routing and activation rules. ## The gate