Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated ci script #1151

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
echo "message=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
- name: npm ci
run: |
npm ci
npm ci --ignore-scripts
- name: 🔨 Use .NET Core 6.0 SDK
uses: actions/setup-dotnet@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions src/Nuke/GithubActions/GitHubActionsLintAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public sealed class GitHubActionsLintAttribute : GitHubActionsStepsAttribute
/// <param name="image"></param>
/// <param name="images"></param>
public GitHubActionsLintAttribute(
string name,
GitHubActionsImage image,
string name,
GitHubActionsImage image,
params GitHubActionsImage[] images
) : base(name, image, images)
{
Expand All @@ -35,8 +35,8 @@ params GitHubActionsImage[] images
/// <param name="image"></param>
/// <param name="images"></param>
public GitHubActionsLintAttribute(
string name,
string image,
string name,
string image,
params string[] images
) : base(name, image, images) { }

Expand Down Expand Up @@ -76,7 +76,7 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa
step.Ref = "${{ github.event.pull_request.head.ref }}";
}
)
.InsertAfterCheckOut(new RunStep("npm ci") { Run = "npm ci", })
.InsertAfterCheckOut(new RunStep("npm ci") { Run = "npm ci --ignore-scripts", })
.InsertAfterCheckOut(
new RunStep("Get Head Commit Message") { Id = "commit-message", Run = "echo \"message=$(git show -s --format=%s)\" >> \"$GITHUB_OUTPUT\"", }
)
Expand All @@ -100,4 +100,4 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa

return configuration;
}
}
}
Loading