Skip to content

Commit

Permalink
chore: update console log.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 6, 2021
1 parent 60805ad commit d3916e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ async function run() {
`There are no releases on ${owner}/${repo}. Tags are not releases. (status=${commits.status}) ${commits.data.message || ''}`
);
}
core.info(`Latest Ref: \x1b[34m${JSON.stringify(commits.data.commits)}\x1b[0m`)

for (const data of commits.data.commits) {
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.message}\x1b[0m ${data.commit.author.name}`)
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.message}\x1b[0m ${data.commit.author.name} ${data.sha}`)
}

// By default a GitHub action checkout is shallow. Get all the tags, branches,
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ async function run() {
`There are no releases on ${owner}/${repo}. Tags are not releases. (status=${commits.status}) ${commits.data.message || ''}`
);
}
core.info(`Latest Ref: \x1b[34m${JSON.stringify(commits.data.commits)}\x1b[0m`)

for (const data of commits.data.commits) {
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.message}\x1b[0m ${data.commit.author.name}`)
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.message}\x1b[0m ${data.commit.author.name} ${data.sha}`)
}

// By default a GitHub action checkout is shallow. Get all the tags, branches,
Expand Down

0 comments on commit d3916e6

Please sign in to comment.