Skip to content

Commit

Permalink
ci: update second job of verify workflow (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
14Richa authored Aug 11, 2023
1 parent 7af0797 commit c8a78ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maintainers-tsc-changes-verification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
// If the PR is made by the bot.
if (author === 'asyncapi-bot') {
core.info('Changes made by asyncapi-bot')
core.setOutput('errorMessages', JSON.stringify(errorMessages));
const removedMaintainers = mainFile.filter(
(mainMaintainer) => !prFile.some((maintainer) => mainMaintainer.github === maintainer.github)
Expand Down Expand Up @@ -125,7 +126,8 @@ jobs:
with:
github-token: ${{ env.GITHUB_TOKEN }}
script: |
const errorMessages = ${{ needs.verify-changes-if-tsc-if-maintainers.outputs.errorMessages }};
const errorMessagesString = '${{ needs.verify-changes-if-tsc-if-maintainers.outputs.errorMessages }}';
const errorMessages = errorMessagesString ? JSON.parse(errorMessagesString) : [];
console.log('Parsed errorMessages:', errorMessages);
if (errorMessages && Array.isArray(errorMessages) && errorMessages.length > 0) {
const owner = context.repo.owner;
Expand All @@ -146,7 +148,7 @@ jobs:
state: 'closed'
});
} else {
console.info('rawErrorMessages is empty.');
console.info('errorMessages is empty.');
}
block-bot-from-tsc-removal:
Expand Down

0 comments on commit c8a78ba

Please sign in to comment.