Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 for Github Action: How to install yq for a bash script? #2208

Closed
guettli opened this issue Dec 2, 2024 · 1 comment
Closed

Docs for Github Action: How to install yq for a bash script? #2208

guettli opened this issue Dec 2, 2024 · 1 comment

Comments

@guettli
Copy link

guettli commented Dec 2, 2024

Please describe your feature request.

I want to use yq in a bash script.

I am looking at the current docs:

https://mikefarah.gitbook.io/yq/usage/github-action

I only see a way to run an action. I want to use yq in a bash script which I run in a Github Workflow step.

Please add instructions how to do that.

I tried apt and snap and both methods for installing did not work.

I found that: https://github.com/frenck/action-setup-yq

But somehow I would like to avoid it. It is one more dependency, and one more person who could inject evil code.

(and of course: Thank you very much for yq. I use it almost daily)

@mikefarah
Copy link
Owner

If you don't want to use the github action I provide, I'd either use the docker image or wget/curl from the release page I guess.

Note that my github action just extends from the official dockerfile: https://github.com/mikefarah/yq/blob/master/github-action/Dockerfile

Repository owner locked and limited conversation to collaborators Dec 14, 2024
@mikefarah mikefarah converted this issue into discussion #2232 Dec 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants