Skip to content

Commit

Permalink
feat: info log the completion status if it is a success too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed May 1, 2022
1 parent c238ee8 commit bbdf499
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/index.js

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

4 changes: 2 additions & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ async function run(): Promise<void> {
if (status === WorkflowRunStatus.Completed) {
switch (conclusion) {
case WorkflowRunConclusion.Success:
core.info(
"Run Completed:\n" +
` Run ID: ${config.runId}\n` +
` Status: ${status}\n` +
` Conclusion: ${conclusion}`
);
return;
case WorkflowRunConclusion.ActionRequired:
case WorkflowRunConclusion.Cancelled:
Expand Down

0 comments on commit bbdf499

Please sign in to comment.