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

Unable to specify path #7

Closed
rumblefrog opened this issue Aug 13, 2019 · 2 comments
Closed

Unable to specify path #7

rumblefrog opened this issue Aug 13, 2019 · 2 comments

Comments

@rumblefrog
Copy link

rumblefrog commented Aug 13, 2019

Upon attempting to set the checkout path

checkout/action.yml

Lines 19 to 20 in af513c7

path:
description: 'Optional path to check out source code'

The following error was emitted:

Your workflow file was invalid: .github/workflows/build.yml (Line: 22, Col: 7): Unexpected value 'path'

My action file

name: Build & Deploy
on: [push]

jobs:
  build:
    name: Build & Deploy
    runs-on: ubuntu-latest

    strategy:
      matrix:
        go-version: [ '1.12' ]

    steps:
    - name: Use go ${{ matrix.go-version }}
      uses: actions/setup-go@v1
      with:
        version: ${{ matrix.go-version }}
      id: go

    - name: Checkout source
      uses: actions/checkout@master
      path: ${{ go.module-path }} # Line 22

    - name: Install server dependencies
      working-directory: ${{ go.module-path }}
      run: go get -v -t -d -u ./server

    - name: Build server
      working-directory: ${{ go.module-path }}
      run: go build ./server

Minimal reproduce case would be the golang starter workflow: https://github.com/actions/starter-workflows/blob/329e9a8e162a10b5e131d13efb78e57a5b86fdd6/ci/go.yml

@TingluoHuang
Copy link
Member

@rumblefrog
what about :)

    - name: Checkout source
      uses: actions/checkout@master
      with:
        path: ${{ go.module-path }} # Line 22

@rumblefrog
Copy link
Author

Thanks! Looks like someone just updated the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants