Skip to content

Commit

Permalink
fix: repair stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Apr 2, 2024
1 parent 371c5a8 commit 3aa4b4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gha-check-updates",
"version": "1.0.7",
"version": "1.0.8",
"description": "Check for outdated github actions.",
"repository": "github:jkoenig134/gha-check-updates",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ for (const file of files) {

$.verbose = false

const upToDates = []
const notUpToDates = []

for (const usesDeclaration of uniqueUsesDeclarations) {
Expand All @@ -54,7 +53,7 @@ for (const file of files) {
const tags = tagsOutput.stdout
.split("\n")
.map((v: string) => v.split("refs/tags/")[1])
.filter((v: string) => v && v.startsWith("v"))
.filter((v: string) => !!v)

const tagsByTagLengths: Record<number, string[] | undefined> = tags.reduce((acc: any, v: string) => {
const length = v.length
Expand Down

0 comments on commit 3aa4b4a

Please sign in to comment.