cake-build / cake-action

:cake::octocat: Run Cake (C# Make) scripts in your GitHub Actions workflows.
https://cakebuild.net
MIT License
45 stars 13 forks source link

Not finding build.cake #45

Closed johanparmar closed 1 year ago

johanparmar commented 1 year ago

Hi,

I have a very simple github workflow that looks like:

name: push-master
run-name: ${{ github.actor }} is pushing to master
on: 
  push:
  pull_request:
    branches:
      - master
jobs:
  test-push-master:
    runs-on: ubuntu-latest
    steps:
      - name: run cake script
        uses: cake-build/cake-action@master
        with:
          verbosity: Diagnostic

When I try to run this I get the following error message: build.cake, line #0: Could not find script '/home/runner/work/algo-charging/algo-charging/build.cake'.

I do have a build script in the root: https://github.com/AlgoCharging/algo-charging/blob/master/build.cake

Any ideas what might be the problem?

devlead commented 1 year ago

Could it be that you lack the checkout step, so the code isn't available?

Example https://github.com/cake-build/cake/blob/develop/.github/workflows/build.yml#L18-L21

johanparmar commented 1 year ago

Thanks! That was it. I'm just starting up with this.

devlead commented 1 year ago

Excellent, glad you got it sorted.