Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Sep 13, 2024
1 parent 1f58086 commit 7479f74
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,18 @@ jobs:
const testResults = fs.readFileSync('/tmp/style_report.log', 'utf8');
async function commentOnPR() {
const auth = createAppAuth({
appId: 995720,
privateKey: fs.readFileSync('/tmp/private-key.pem', 'utf8'),
installationId: 54780428,
const auth = createAppAuth({
appId: 995720,
privateKey: fs.readFileSync('/tmp/private-key.pem', 'utf8'),
installationId: 54780428,
});
const installationAuthentication = await auth({ type: 'installation' });
const octokit = new Octokit({ auth: installationAuthentication.token });
try {
await octokit.issues.createComment({
const octokit = new Octokit({ auth: await auth() });

Check failure on line 66 in .github/workflows/check-style.yml

View workflow job for this annotation

GitHub Actions / check-style / check-style

66:1 [trailing-spaces] trailing spaces
await octokit.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `Integration tests failed. Here are the results:\n\n\`\`\`\n${testResults}\n\`\`\``,
body: `Integration tests failed. Here are the results:\n\n\`\`\`\n${testResults}\n\`\`\``
});
} catch (error) {
console.error('Error creating comment:', error);
}
}

Check failure on line 73 in .github/workflows/check-style.yml

View workflow job for this annotation

GitHub Actions / check-style / check-style

73:1 [empty-lines] too many blank lines (1 > 0)
commentOnPR();

0 comments on commit 7479f74

Please sign in to comment.