Skip to content

Commit

Permalink
added core.info lines for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
14Richa committed Jul 25, 2023
1 parent 72324c9 commit 57fa332
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/msg-to-new-member-pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
username: maintainer
});
} catch (error) {
console.error(`Failed to add ${maintainer} to the organization:`, error);
core.setFailed(`Failed to add ${maintainer} to the organization: ${error.message}`);
}
}
Expand All @@ -112,7 +112,7 @@ jobs:
username: maintainer
});
} catch (error) {
console.error(`Failed to add ${maintainer} to the team:`, error);
core.setFailed(`Failed to add ${maintainer} to the team: ${error.message}`);
}
}
Expand Down Expand Up @@ -156,9 +156,9 @@ jobs:
await github.request('DELETE /orgs/asyncapi/memberships/{username}', {
username: maintainer
});
console.log(`Successfully removed ${maintainer} from the organization.`);
core.info(`Successfully removed ${maintainer} from the organization.`);
} catch (error) {
console.error(`Failed to remove ${maintainer} from the organization:`, error);
core.setFailed(`Failed to remove ${maintainer} from the organization: ${error.message}`);
}
}
Expand All @@ -173,9 +173,9 @@ jobs:
await github.request('DELETE /orgs/asyncapi/teams/maintainers/memberships/{username}', {
username: maintainer
});
console.log(`Successfully removed ${maintainer} from the team.`);
core.info(`Successfully removed ${maintainer} from the team.`);
} catch (error) {
console.error(`Failed to remove ${maintainer} from the team:`, error);
core.setFailed(`Failed to remove ${maintainer} from the team: ${error.message}`);
}
}
outputs:
Expand Down Expand Up @@ -209,8 +209,8 @@ jobs:
// Write the updated content back to the file
fs.writeFileSync(path, content);

// Log the updated content to the console
console.log('Updated Emeritus.yaml:\n', content);
// Log the updated content using core.info
core.info(`Updated Emeritus.yaml:\n${content}`);

- name: Create new branch
run: |
Expand Down

0 comments on commit 57fa332

Please sign in to comment.