]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Fix artifact name in claude-review workflow
authorDaan De Meyer <daan@amutable.com>
Wed, 18 Mar 2026 08:11:09 +0000 (09:11 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Mar 2026 09:53:49 +0000 (10:53 +0100)
The name doesn't actually matter, it gets replaced with the name
of the file when not archiving. So stop passing a name and pass in
the filename as the name when downloading the artifact.

.github/workflows/claude-review.yml

index 344b3d83deaa893c0fd8b1178711df2cbcc3e5d8..cf55bf612a400f78b557d200403af3a1d3fb4ee3 100644 (file)
@@ -126,10 +126,11 @@ jobs:
             const fs = require("fs");
             fs.writeFileSync("pr-context.json", JSON.stringify(prContext));
 
+      # archive: false makes upload-artifact use the file's basename
+      # (pr-context.json) as the artifact name, ignoring the name input.
       - name: Upload PR context
         uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
         with:
-          name: pr-context
           path: pr-context.json
           archive: false
 
@@ -158,7 +159,7 @@ jobs:
       - name: Download PR context
         uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
         with:
-          name: pr-context
+          name: pr-context.json
 
       - name: Configure AWS credentials
         uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7