Skip to content

Commit

Permalink
fix(set-latest-pipeline-status): stop failing when no deployments fou…
Browse files Browse the repository at this point in the history
…nd (#202)
  • Loading branch information
danadajian authored May 20, 2022
1 parent 076860d commit 776ea57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/0.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/0.index.js.map

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

4 changes: 2 additions & 2 deletions src/helpers/set-latest-pipeline-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const setLatestPipelineStatus = async ({
});
const deployment_id = deployments.find(Boolean)?.id;
if (!deployment_id) {
core.setFailed('No deployments found. There must be a GitHub deployment on your repository before this helper can run.');
throw new Error();
core.info('No deployments found. Pipeline is clear!');
return;
}
const { data: deploymentStatuses } = await octokit.repos.listDeploymentStatuses({
deployment_id,
Expand Down

0 comments on commit 776ea57

Please sign in to comment.