Skip to content

Commit

Permalink
chore: console commit log.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 6, 2021
1 parent a84204d commit 60805ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ async function run() {
}
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}`)
}

// By default a GitHub action checkout is shallow. Get all the tags, branches,
// and history. Redirect output to standard error which we can collect in the
// action.
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ async function run() {
}
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}`)
}

// By default a GitHub action checkout is shallow. Get all the tags, branches,
// and history. Redirect output to standard error which we can collect in the
// action.
Expand Down

0 comments on commit 60805ad

Please sign in to comment.