cake-build / cake-action

:cake::octocat: Run Cake (C# Make) scripts in your GitHub Actions workflows.

Home Page:https://cakebuild.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: csproj / Cake.Frosting support

devlead opened this issue · comments

Would be nice to be able to use the action with Frosting too, something like

steps:
  - name: Run the Cake script
    uses: cake-build/cake-action@vX
    with:
      arguments: |
        name: value
      target: Build
      verbosity: Diagnostic
      csproj: ./build/build.csproj

resulted in something like below being executed

dotnet run --project ./build/build.csproj -- --target="Build" --verbosity="Diagnostic" --name="value"

Sounds like a nice addition.

@ecampidoglio @devlead what were you thinking about the implementation details? If you need some help with it, I would be help to assist.

@ecampidoglio @devlead what were you thinking about the implementation details? If you need some help with it, I would be help to assist.

Essentially like described above if csproj specified a separate flow is triggered, instead of installing and executing the Cake tool it should "just" do a dotnet run passing arguments to it just like it would a script.

A .NET run will implicitly restore and build the csproj, so that should be the only dotnet command needed to execute.