Skip to content

Commit 679440f

Browse files
committed
add actions/cache/save and actions/cache/restore to popular actions
and remove workaround for #442 because `actions/download-artifact@v3` is no longer available due to the drop of `node16` runner.
1 parent 799bea3 commit 679440f

File tree

4 files changed

+37
-22
lines changed

4 files changed

+37
-22
lines changed

popular_actions.go

Lines changed: 25 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: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,6 @@ func (g *gen) fetchRemote() (map[string]*actionlint.ActionMetadata, error) {
191191
}
192192
}
193193

194-
// Workaround for #442.
195-
// Once this issue is fixed or the `download-artifact@v3" is completely obsolete (due to unsupported runner),
196-
// remove this `if` statement and regenerate popular_actions.go.
197-
// https://github.com/actions/download-artifact/issues/355
198-
if f.spec == "actions/download-artifact@v3" {
199-
if f.meta.Outputs == nil {
200-
f.meta.Outputs = actionlint.ActionMetadataOutputs{}
201-
}
202-
f.meta.Outputs["download-path"] = &actionlint.ActionMetadataOutput{
203-
Name: "download-path",
204-
}
205-
}
206-
207194
ret[f.spec] = f.meta
208195
}
209196

scripts/generate-popular-actions/popular_actions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@
6565
"tags": ["v1", "v2", "v3", "v4"],
6666
"next": "v5"
6767
},
68+
{
69+
"slug": "actions/cache",
70+
"path": "/save",
71+
"tags": ["v4"],
72+
"next": "v5"
73+
},
74+
{
75+
"slug": "actions/cache",
76+
"path": "/restore",
77+
"tags": ["v4"],
78+
"next": "v5"
79+
},
6880
{
6981
"slug": "actions/checkout",
7082
"tags": ["v1", "v2", "v3", "v4"],

testdata/ok/issue-442.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)