Skip to content

Commit

Permalink
validate image name
Browse files Browse the repository at this point in the history
  • Loading branch information
craftycram committed Feb 13, 2024
1 parent 776d077 commit 27d07d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@
"import/named": "off",
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"operator-linebreak": "off",
},
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function updateServices(image: string): Promise<void> {
if (
service.deploy?.labels?.find((label: string): boolean =>
label.startsWith('ghcrhook.update'),
)
) &&
service.image === image
) {
console.log(service.image);
updateService = true;
Expand Down

0 comments on commit 27d07d9

Please sign in to comment.