Skip to content

Commit

Permalink
aaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jul 28, 2024
1 parent 66cbcc3 commit dc7285b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,10 @@ jobs:
repo: context.repo.repo,
ref: context.sha
});
console.log("Check runs found:", result.data.check_runs.map(run => run.name));
const checkRun = result.data.check_runs.find(run => run.name === 'Check python matches black format');
if (checkRun) {
if (checkRun) {
console.log("Updating check run with ID:", checkRun.id);
await github.rest.checks.update({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -616,6 +618,8 @@ jobs:
summary: 'The black formatting check failed but it is marked as neutral.',
}
});
} else {
console.log("No matching check run found.");
}
# - name: Mark step with a warning
Expand Down

0 comments on commit dc7285b

Please sign in to comment.