mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-12-26 00:39:37 +00:00
Document how to pass input arguments during local development
Suggested by @shaunco in #38. Co-authored-by: Shaun Cooley <scooley@mapped.com>
This commit is contained in:
parent
5fedeb584e
commit
79096d29b0
1 changed files with 18 additions and 1 deletions
19
README.md
19
README.md
|
@ -124,7 +124,24 @@ As a note to my future self, in order to work on this repo:
|
|||
* Clone it
|
||||
* Run `yarn install` to fetch dependencies
|
||||
* _hack hack hack_
|
||||
* `node index.js`. Inputs are passed through `INPUT_` env vars with their names uppercased. Use `env "INPUT_SSH-PRIVATE-KEY=\`cat file\`" node index.js` for this action.
|
||||
* `node index.js`. Inputs are passed through `INPUT_` env vars with their names uppercased.
|
||||
|
||||
On *nix use:
|
||||
```bash
|
||||
env "INPUT_SSH-PRIVATE-KEY=\`cat file\`" node index.js
|
||||
```
|
||||
|
||||
On Windows (cmd):
|
||||
```cmd
|
||||
set /P INPUT_SSH-PRIVATE-KEY=< file
|
||||
node index.js
|
||||
```
|
||||
|
||||
On Windows (PowerShell):
|
||||
```ps
|
||||
${env:INPUT_SSH-PRIVATE-KEY} = (Get-Content .\test-keys -Raw); node index.js
|
||||
node index.js
|
||||
```
|
||||
* Run `npm run build` to update `dist/*`, which holds the files actually run
|
||||
* Read https://help.github.com/en/articles/creating-a-javascript-action if unsure.
|
||||
* Maybe update the README example when publishing a new version.
|
||||
|
|
Loading…
Reference in a new issue