Skip to content

Commit 9f63ffa

Browse files
fix: improve log output wording and level
1 parent 6f0776e commit 9f63ffa

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

dist/index.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vercel.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ export default async function getDeploymentUrl(repo, branch, options) {
2828
throw new Error('no deployments found')
2929
}
3030

31-
core.debug(`Found ${data.deployments.length} deployments`)
32-
core.debug(`Looking for matching deployments ${repo}/${branch}`)
31+
core.info(`Found ${data.deployments.length} deployments`)
32+
core.info(`Looking for matching deployments ${repo}/${branch}`)
3333
const builds = data.deployments.filter((deployment) => {
3434
return (
3535
deployment.meta.githubCommitRepo === repo &&
3636
deployment.meta.githubCommitRef === branch
3737
)
3838
})
3939

40-
core.debug(`Found ${builds.length} matching builds`)
40+
core.info(`Found ${builds.length} matching deployments`)
4141
if (!builds || builds.length <= 0) {
4242
core.error(JSON.stringify(builds, null, 2))
43-
throw new Error('no deployments found')
43+
throw new Error('no matching deployments found, please check your filters')
4444
}
4545

4646
const build = builds[0]

0 commit comments

Comments
 (0)