From ed45eb717ce4492c4d6dcc4b44791440c0ad882b Mon Sep 17 00:00:00 2001 From: Thomas Leplus Date: Mon, 22 Apr 2024 21:32:35 -0300 Subject: [PATCH] Update dockerimage.yml --- .github/workflows/dockerimage.yml | 6 +++--- .jscpd.json | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .jscpd.json diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 3af0ed1..f91f2e5 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -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`) diff --git a/.jscpd.json b/.jscpd.json new file mode 100644 index 0000000..c0c5473 --- /dev/null +++ b/.jscpd.json @@ -0,0 +1,6 @@ +{ + "ignore": [ + ".github/workflows/dockerimage.yml", + ".github/workflows/dockerrelease.yml" + ] +}