Skip to content

Commit 187a0b2

Browse files
committed
add v3-node20 versions of artifact actions (#468)
Note that this restores the workaround for #442.
1 parent 7c7c0ce commit 187a0b2

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

popular_actions.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generate-popular-actions/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ func (g *gen) fetchRemote() (map[string]*actionlint.ActionMetadata, error) {
192192
}
193193
}
194194

195+
// Workaround for #442.
196+
// https://github.com/actions/download-artifact/issues/355
197+
if f.spec == "actions/download-artifact@v3-node20" {
198+
if f.meta.Outputs == nil {
199+
f.meta.Outputs = actionlint.ActionMetadataOutputs{}
200+
}
201+
f.meta.Outputs["download-path"] = &actionlint.ActionMetadataOutput{
202+
Name: "download-path",
203+
}
204+
}
205+
195206
ret[f.spec] = f.meta
196207
}
197208

scripts/generate-popular-actions/popular_actions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"slug": "actions/download-artifact",
102-
"tags": ["v1", "v2", "v3", "v4"],
102+
"tags": ["v1", "v2", "v3", "v3-node20", "v4"],
103103
"next": "v5"
104104
},
105105
{
@@ -149,7 +149,7 @@
149149
},
150150
{
151151
"slug": "actions/upload-artifact",
152-
"tags": ["v1", "v2", "v3", "v4"],
152+
"tags": ["v1", "v2", "v3", "v3-node20", "v4"],
153153
"next": "v5"
154154
},
155155
{

0 commit comments

Comments
 (0)