Skip to content

Commit

Permalink
feat: add additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott committed Apr 21, 2022
1 parent 277a530 commit 90c5720
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const release = require('conventional-github-releaser');
// most @actions toolkit packages have async methods
async function run() {
try {
core.info(`Starting Conventional GitHub Release.`);
core.info(`Starting Conventional GitHub Release Action.`);

const token = core.getInput('token');

core.info(`Received GitHub Token.`);

if (token === undefined) {
core.setFailed(`The GitHub Token could not be detected (from the token action input).`);

Expand All @@ -28,6 +30,8 @@ async function run() {
token: token
};

core.info(`Attempting Conventional GitHub Release.`);

release(auth, {preset: "angular"}, function(err, responses) {
if (err !== null) {
core.setFailed(`An error occurred creating the release: ${err}`);
Expand Down

0 comments on commit 90c5720

Please sign in to comment.