Skip to content
New issue

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

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

Already on GitHub? # to your account

Using the Cake Action multiple times in the same build causes the workflow to fail #8

Closed
ecampidoglio opened this issue Nov 5, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ecampidoglio
Copy link
Member

Right now, if you use the Cake Action in multiple steps within the same build definition, like in this example:

steps:
  - name: Compile
    uses: ecampidoglio/cake-action@v1.0.1
    with:
      target: Compile
  - name: Run the tests
    uses: ecampidoglio/cake-action@v1.0.1
    with:
      target: Test

The second step will fail with the following error message:

dotnet tool install --tool-path tools Cake.Tool
Tool 'cake.tool' is already installed.
##[error]The process 'dotnet' failed with exit code 1

That's because the Cake Action tries to install the Cake.Tool before every run, which obviously doesn't work if the tool has already been installed by a previous instance.

@ecampidoglio ecampidoglio added the bug Something isn't working label Nov 5, 2019
@ecampidoglio ecampidoglio self-assigned this Nov 5, 2019
@ecampidoglio
Copy link
Member Author

Fixed in e24c3e5.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant