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

[CY-3681] Can't specify absolute path #32

Closed
IntelBear opened this issue Feb 10, 2021 · 4 comments
Closed

[CY-3681] Can't specify absolute path #32

IntelBear opened this issue Feb 10, 2021 · 4 comments

Comments

@IntelBear
Copy link

IntelBear commented Feb 10, 2021

I'm trying to use this action and providing a directory to start from as seen in the documentation, but it's unable to accept absolute path that I'm giving by passing in ${{ github.ref }}/src (src is at the top level of my repo). What's the proper syntax to pass an absolute path into the directory option?

@github-actions
Copy link

Internal ticket created : CY-3681

@github-actions github-actions bot changed the title Can't specify absolute path [CY-3681] Can't specify absolute path Feb 10, 2021
@josemiguelmelo
Copy link
Contributor

Hi @IntelBear ,

Our codacy-analysis-cli is expecting the directory to be the root of the repository. So, passing a folder that is not the root of your repository to the directory parameter will make the CLI fail.

Also, it seems the environment variable that contains the workspace directory path is GITHUB_WORKSPACE (https://docs.github.com/en/actions/reference/environment-variables).

@josemiguelmelo
Copy link
Contributor

Hi!
I'm closing the issue. Feel free to re-open it if you need any more help on this 🙂
Thanks,

@gjermundgaraba
Copy link

Does the directory parameter make any sense then for the github action? If not, might be good to document under "Extra configurations".

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

No branches or pull requests

3 participants