simonw / shot-scraper

A command-line utility for taking automated screenshots of websites
https://shot-scraper.datasette.io
Apache License 2.0
1.67k stars 73 forks source link

Conflict: an artifact with this name already exists on the workflow run #141

Closed simonw closed 8 months ago

simonw commented 8 months ago

CI bug, caused by this upgrade: https://github.com/simonw/shot-scraper/commit/55d2852aaf4556c58bf8cd3d1065b35f2ca86d8e

Specifically this change:

     - name: Archive examples
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
         name: examples
         path: examples/*
simonw commented 8 months ago

Listed as a breaking change here: https://github.com/actions/upload-artifact/blob/main/README.md#breaking-changes

Uploading to the same named Artifact multiple times.

Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error.

simonw commented 8 months ago

That fixed it: https://github.com/simonw/shot-scraper/actions/runs/7791982657

CleanShot 2024-02-05 at 15 09 56@2x