Skip to content

Commit

Permalink
[auto] Update compiled version
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 10, 2022
1 parent 38c0c78 commit 008a9f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4150,15 +4150,15 @@ async function runAction() {
context.eventName === "pull_request" || context.eventName === "pull_request_target";

// If on a PR from fork: Display messages regarding action limitations
if (isPullRequest && context.repository.hasFork) {
if (context.eventName === "pull_request" && context.repository.hasFork) {
core.error(
"This action does not have permission to create annotations on forks. You may want to run it only on `push` events. See https://github.com/wearerequired/lint-action/issues/13 for details",
"This action does not have permission to create annotations on forks. You may want to run it only on `pull_request_target` events with checks permissions set to write. See https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions for details.",
);
}
if (isPullRequest && context.repository.hasFork && autoFix) {
core.error(
"This action does not have permission to push to forks. You may want to run it only on `push` events.",
);
if (autoFix) {
core.error(
"This action does not have permission to push to forks. You may want to run it only on `push` events. See https://github.com/wearerequired/lint-action/issues/13 for details",
);
}
}

if (autoFix) {
Expand Down

0 comments on commit 008a9f8

Please sign in to comment.