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

Explain how to actually pass inputs? #57

Open
Pomax opened this issue Jun 8, 2020 · 7 comments
Open

Explain how to actually pass inputs? #57

Pomax opened this issue Jun 8, 2020 · 7 comments

Comments

@Pomax
Copy link

Pomax commented Jun 8, 2020

The README.md doesn't say anything about how to specify the input values. I'm sure that somewhere buried in the github action docs that's explain but please put the actual steps necessary in the README.md so that people don't have to hunt for hours to find them (I know I still haven't).

@boner-cmd
Copy link

What were you trying to do? Which part is confusing?

@Pomax
Copy link
Author

Pomax commented Oct 18, 2020

https://github.com/ad-m/github-push-action#inputs - the phrasing is "can be passed in using [...]" without explaining what "passing in" means. It looks for all the world that there isn't actually any "passing in", and the text should be updated to instead read "can be referenced using [...]"; the github token gets provided by Github, you don't pass that into the action context yourself. The same goes for branch. So a docs update is in order.

@boner-cmd
Copy link

Your original issue stated that after hours of searching, it still wasn't clear on how to use the action at all. Your follow-up is that it is actually very clear on how to use the action (paste the included environmental variable) but that it isn't clear if other options are available (passing in inputs without using an environmental variable, etc).

I'm sure that somewhere buried in the github action docs that's explain but please put the actual steps necessary in the README.md

doesn't quite click with the fact that you can just paste in the suggested environmental variable without reading the github action docs at all. You can also see it from the example code provided in the doc:

- name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: ${{ github.ref }}

Either way, this seems like a great thing for you to submit your own PR for- if you don't like the phrasing, you can resolve this yourself. However, if the fix is really as simple as changing "passed in" to "referenced using," that seems a little different from the original issue as stated, and I confess I don't really see the functional difference in the language.

Personally, if I didn't think to try using the example inputs recommended by the docs, I don't think changing the phrasing would help. But if you do, send the PR! You seem to know how to use the action now, so if you think you can add the missing link in helping others understand, you're probably in the best position to do it!

@boner-cmd
Copy link

Also worth noting that using the GitHub environmental variable for the token isn't the only valid input to reference for github_token- see the conversation in #23 about how that field can also refer to third party tokens. There's an existing PR to update that language it looks like (#24 )

@Pomax
Copy link
Author

Pomax commented Oct 18, 2020

Yeah: I filed that in June. While I've since figure out what the text actually meant, at the time it was frustrating at hell, so the original comment still stands. Not everyone's a native speaker, and even folks who are native speakers can get confused.

Documentation is hard, so acting on requests to fix the docs is always worth it even if it seems obvious to you personally. Having said that, I'll leave this up to @ad-m, or anyone else marked as contributor to this project, since those are the folks whose opinion matter most here.

@boner-cmd
Copy link

Sure, I was just suggesting that you submit your proposed changes since you think they could help other users.

@Pomax
Copy link
Author

Pomax commented Oct 19, 2020

i contribute to 150+ repos already. Kinda done my part at this point =0

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