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" + ] +}