Skip to content

Commit

Permalink
Update dockerimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Apr 23, 2024
1 parent 6a98ef0 commit b51b502
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
with:
script: |
const { VERSION } = process.env
github.rest.repos.getReleaseByTag({
return github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: `v${VERSION}`,
}).then(function(result) {
core.info(`Release v${VERSION} found`)
return result.name
core.info(`Release ${result.data.name} found`)
return result.data.name
}).catch(function(error) {
if (error.status === 404) {
core.info(`Release v${VERSION} not found`)
Expand Down
6 changes: 6 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignore": [
".github/workflows/dockerimage.yml",
".github/workflows/dockerrelease.yml"
]
}

0 comments on commit b51b502

Please sign in to comment.