Skip to content

Commit

Permalink
ci: update pull request ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
fiamma-builder committed Nov 15, 2024
1 parent 71b41d5 commit afe74fd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check-existing-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ jobs:
});
const content = Buffer.from(fileData.content, 'base64').toString();
console.log('File content:', content);
let validatorData;
try {
Expand All @@ -102,21 +101,21 @@ jobs:
continue;
}
if (!validatorData.btc_address) {
if (!validatorData.btcAddress) {
console.log(`No BTC address found in ${file.filename}`);
continue;
}
console.log(`Checking BTC address: ${validatorData.btc_address}`);
const result = await checkBalance(validatorData.btc_address);
console.log(`Checking BTC address: ${validatorData.btcAddress}`);
const result = await checkBalance(validatorData.btcAddress);
// Add comment to PR with results
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
body: `### BTC Balance Check Results for ${file.filename}\n\n` +
`- BTC Address: \`${validatorData.btc_address}\`\n` +
`- BTC Address: \`${validatorData.btcAddress}\`\n` +
`- Current Balance: ${result.balance} BTC\n` +
`- Required Balance: 1 BTC\n` +
`- Status: ${result.hasEnough ? '✅ PASSED' : '❌ FAILED'}`
Expand Down

0 comments on commit afe74fd

Please sign in to comment.