Add default value for the the github-token input
Since you are likely to be rate-limited if you use this action without a GitHub API token, default the action's `github-token` input to the `token` from the `github` context[^1]. Closes #3 [^1]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
This commit is contained in:
parent
841d37ff46
commit
5866c409ef
|
@ -11,7 +11,8 @@ inputs:
|
||||||
description: Extra args to pass to the planner (prefer using structured `with:` arguments unless using a custom planner!)
|
description: Extra args to pass to the planner (prefer using structured `with:` arguments unless using a custom planner!)
|
||||||
required: false
|
required: false
|
||||||
github-token:
|
github-token:
|
||||||
description: A Github Token so that authenticated requests can be made (set this to `secrets.GITHUB_TOKEN`)
|
description: A GitHub Token for making authenticated requests (which have a higher rate-limit quota than unauthenticated requests)
|
||||||
|
default: ${{ github.token }}
|
||||||
channels:
|
channels:
|
||||||
description: Channel(s) to add (eg `nixpkgs=https://nixos.org/channels/nixpkgs-unstable`)
|
description: Channel(s) to add (eg `nixpkgs=https://nixos.org/channels/nixpkgs-unstable`)
|
||||||
required: false
|
required: false
|
||||||
|
|
Loading…
Reference in a new issue