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

docs: add note about github.workspace #1218

Merged
merged 2 commits into from
Apr 4, 2025
Merged

Conversation

mattjohnsonpint
Copy link
Contributor

I struggled a bit with setting the path to a config file until I realized that the path needs to be a full absolute path on disk when Github Actions runs it. Using the github.workspace context variable seems to be the easiest solution.

Just thought I would document it to save someone else from the frustration.

@ldez ldez added the documentation Improvements or additions to documentation label Apr 4, 2025
@ldez ldez self-requested a review April 4, 2025 00:23
@ldez ldez changed the title docs: use github workspace in config path docs: add note about github.workspace Apr 4, 2025
@ldez
Copy link
Member

ldez commented Apr 4, 2025

The path doesn't need to be an absolute path, it depends on your project structure.

@ldez ldez added the enhancement New feature or request label Apr 4, 2025
@ldez ldez merged commit f51fbec into golangci:main Apr 4, 2025
@mattjohnsonpint mattjohnsonpint deleted the readme branch April 4, 2025 03:33
@mattjohnsonpint
Copy link
Contributor Author

The path doesn't need to be an absolute path, it depends on your project structure.

Hmmm... I tried a relative path but couldn't get it to work. Anyway, this does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants