Fix log message

Signed-off-by: Francesco Saltori <francescosaltori@gmail.com>
This commit is contained in:
Francesco Saltori
2022-05-24 15:34:15 +02:00
parent 456c74403a
commit d075e2e60f
@@ -313,7 +313,7 @@ export function createPublishGithubAction(options: {
username: collaborator.username,
permission: collaborator.access,
});
} else {
} else if (collaborator.team) {
await client.rest.teams.addOrUpdateRepoPermissionsInOrg({
org: owner,
team_slug: collaborator.team,
@@ -325,7 +325,7 @@ export function createPublishGithubAction(options: {
} catch (e) {
assertError(e);
ctx.logger.warn(
`Skipping ${collaborator.access} access for ${collaborator.team}, ${e.message}`,
`Skipping ${collaborator.access} access for ${collaborator.username ?? collaborator.team}, ${e.message}`,
);
}
}