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

feature request to provide and option to checkout code outside of $GITHUB_WORKSPACE #327

Open
iamniting opened this issue Aug 12, 2020 · 3 comments · May be fixed by #388
Open

feature request to provide and option to checkout code outside of $GITHUB_WORKSPACE #327

iamniting opened this issue Aug 12, 2020 · 3 comments · May be fixed by #388

Comments

@iamniting
Copy link

I would like to make a feature request. I wanted to use this action for my project which is written in golang. I want to place my code in the /home/runner/go with the path option instead of $GITHUB_WORKSPACE which is not possible as of today.

Can someone guide me, how we can do that if it is possible? Otherwise, I would request to have a feature for that.

@intolerance
Copy link

Does setting the path not work?

      - name: Checkout code
        uses: actions/checkout@v2
        with:
          path: /home/runner/go

@iamniting
Copy link
Author

iamniting commented Aug 12, 2020

Hi @intolerance above does not work. I get the below error.

Run actions/checkout@v2
  with:
    fetch-depth: 0
    path: /home/runner/go/src/github.com/heketi/heketi
    repository: iamniting/heketi
    token: ***
    ssh-strict: true
    persist-credentials: true
    clean: true
    lfs: false
    submodules: false
  env:
    GOROOT: /opt/hostedtoolcache/go/1.14.7/x64
##[error]Repository path '/home/runner/go/src/github.com/heketi/heketi' is not under '/home/runner/work/heketi/heketi'

The error is getting generated from here I guess

`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`

@jwillemsen
Copy link

Duplicate of #197

LebedevRI added a commit to LebedevRI/checkout that referenced this issue Nov 14, 2020
LebedevRI added a commit to LebedevRI/checkout that referenced this issue Nov 14, 2020
LebedevRI added a commit to LebedevRI/checkout that referenced this issue Nov 14, 2020
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

Successfully merging a pull request may close this issue.

3 participants