File tree 1 file changed +3
-3
lines changed
.github/actions/check-permissions
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ runs:
36
36
const { data : { permission : actorPermission } } = await github.rest.repos.getCollaboratorPermissionLevel({
37
37
owner: context.repo.owner,
38
38
repo: context.repo.repo,
39
- username: tools. context.actor
39
+ username: context.actor
40
40
});
41
41
42
42
// Confirm whether the actor permission is at least the selected permission
43
43
const hasPermission = permissionsRanking.indexOf(minimumPermission) <= permissionsRanking.indexOf(actorPermission) ? "1" : "";
44
44
core.setOutput('has-permission', hasPermission);
45
45
if (!hasPermission) {
46
- core.info(`Current actor (${tools. context.actor}) does not have the minimum required permission '${minimumPermission}' (has '${actorPermission}')`);
46
+ core.info(`Current actor (${context.actor}) does not have the minimum required permission '${minimumPermission}' (has '${actorPermission}')`);
47
47
} else {
48
- core.info(`Current actor (${tools. context.actor}) has the minimum required permission '${minimumPermission}' (has '${actorPermission}')`);
48
+ core.info(`Current actor (${context.actor}) has the minimum required permission '${minimumPermission}' (has '${actorPermission}')`);
49
49
}
You can’t perform that action at this time.
0 commit comments