Skip to content

Commit 10e877d

Browse files
committed
fix test
1 parent 64beeca commit 10e877d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[codespell]
44
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
55
ignore-words-list = afterall
6-
skip = ./.git,./dist,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock,./node_modules
6+
skip = ./.git,./dist,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock,./node_modules,./__tests__/testdata
77
builtin = clear,informal,en-GB_to_en-US
88
check-filenames =
99
check-hidden =

dist/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ function fetchVersions(repoToken) {
8383
else {
8484
rest = new restm.RestClient("setup-task");
8585
}
86-
const tags = (yield rest.get("https://api.github.com/repos/go-task/task/git/refs/tags")).result || [];
87-
return tags
88-
.filter((tag) => tag.ref.match(/v\d+\.[\w\.]+/g))
89-
.map((tag) => tag.ref.replace("refs/tags/v", ""));
86+
const tags = (yield rest.get("https://api.github.com/repos/go-task/task/releases")).result || [];
87+
return tags.map((tag) => tag.tag_name);
9088
});
9189
}
9290
// Make partial versions semver compliant.

0 commit comments

Comments
 (0)