Skip to content

Commit

Permalink
Updated to not run linting on automated pull requests properly
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Nov 21, 2023
1 parent d143e9a commit a629967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nuke/GithubActions/GitHubActionsLintAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa

configuration.Permissions.Contents = GitHubActionsPermission.Write;

buildJob.If = "github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'dependabot[bot]'";

buildJob
.ConfigureStep<CheckoutStep>(
step =>
Expand All @@ -76,6 +74,8 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa
}
);

configuration.Jobs.ForEach(z => z.If = "github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'dependabot[bot]'");

buildJob.Name = "lint";

return configuration;
Expand Down

0 comments on commit a629967

Please sign in to comment.