You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes my workflow failed and I need to rerun it. I have both upload-pages-artifact and deploy-pages in the same job, and during the 2nd run deploy-pages will fail with:
Run actions/deploy-pages@v4
with:
token: ***
timeout: 600000
error_count: 10
reporting_interval: 5000
artifact_name: github-pages
preview: false
env:
GITHUB_PAGES: true
Fetching artifact metadata for "github-pages" in this workflow run
Found 2 artifact(s)
Error: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
at getArtifactMetadata (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/api-client.js:89:1)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/deployment.js:66:1)
at main (/home/runner/work/_actions/actions/deploy-pages/v4/src/index.js:30:1)
Error: Error: Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.
upload-pages-artifact already outputs artifact_id which should be unique between runs, and #251 seems already have the plumbing laid out. If we can pass this artifact_id to deploy-pages there will be no ambiguity for which artifact we want to upload.
Reacted by Jegor Zalenski, Azeem, Jack Copland, Radek Bartoň, Milan Raj, Gerd Zellweger, Shengyu Zhang, Nato Boram, Jacob Shing and syuilo
Hit this pretty regularly unfortunately. Workaround is to manually go in and delete artifacts from the previous builds before re-running jobs. Which is a bummer when I might want to come back and reference those again to learn more about the failures.
I also want to catch an artefact uploaded by a different workflow via workflow_run using ${{ github.event.workflow_run.id }}, just like it is possible with actions/download-artifact@v5, but this action fails with "No artifacts named "github-pages" were found for this workflow run.".
Right now, we have to download+upload it again, which is awkward.
Activity
rajsite commentedon Apr 4, 2025
Hit this pretty regularly unfortunately. Workaround is to manually go in and delete artifacts from the previous builds before re-running jobs. Which is a bummer when I might want to come back and reference those again to learn more about the failures.
NatoBoram commentedon Oct 27, 2025
I also want to catch an artefact uploaded by a different workflow via
workflow_runusing${{ github.event.workflow_run.id }}, just like it is possible withactions/download-artifact@v5, but this action fails with "No artifacts named "github-pages" were found for this workflow run.".Right now, we have to download+upload it again, which is awkward.
fix(ci): deploy a single Pages artifact so deploy-pages@v4 stops 422ing
Deploy only the site the deploy job's own attempt rendered
CI: fix re-running the website deployment (#4204)
fix(pages): stop the Pages deploy racing its own artifact upload (#25)
ci: 合併 Site Integrity 與 Browser Tests
ci: Pages artifact 依 run attempt 命名
CI: only deploy the website from the head of `main` (#4230)
chore(CI): build releases without the shared cache, pass artifacts by…
Deploy in its own job so a failed deploy can be re-run (Z01)
fix(ci): docs.yml rollback to upload-pages-artifact@v3 + deploy-pages…
ci(pages): 拆成 build、deploy 兩個 job(備妥未跑,push 後才會生效)
fix: deploy Pages from a job after the build
fix(ci): split deploy-pages build and deploy jobs to avoid artifact-l…