Skip to content

Commit

Permalink
testing (#1157)
Browse files Browse the repository at this point in the history
* testing

* Automatically linting code

---------

Co-authored-by: Rocket Understudy <33589210+rsg-bot@users.noreply.github.com>
  • Loading branch information
david-driscoll and rsg-bot committed Mar 22, 2024
1 parent cc01cc9 commit c03c146
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Nuke/GithubActions/GitHubActionsLintAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa
}
);

foreach (var workflowTrigger in configuration.DetailedTriggers
.OfType<RocketSurgeonGitHubActionsWorkflowTrigger>())
foreach (var workflowTrigger in configuration
.DetailedTriggers
.OfType<RocketSurgeonGitHubActionsWorkflowTrigger>()
)
{
if (workflowTrigger.Secrets.Any(z => z.Name == TokenSecret || z.Alias == TokenSecret)) continue;
workflowTrigger.Secrets.Add(new(TokenSecret, "The token used to commit back when linting", true));
Expand All @@ -106,4 +108,4 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa

return configuration;
}
}
}

0 comments on commit c03c146

Please sign in to comment.