Skip to content

Commit

Permalink
Log whether changes were detected
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHatch committed Sep 5, 2020
1 parent a600f92 commit 987b40a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const setOutput = (major, minor, patch, increment, changed, branch, namespace) =

const repository = process.env.GITHUB_REPOSITORY;

if (!changed) {
core.info('No changes detected for this commit');
}

core.info(`Version is ${major}.${minor}.${patch}+${increment}`);
if (repository !== undefined && !namespace) {
core.info(`To create a release for this version, go to https://github.com/${repository}/releases/new?tag=${tag}&target=${branch.split('/').reverse()[0]}`);
Expand Down

0 comments on commit 987b40a

Please sign in to comment.