Github OpenWhisk actions generated by Swagger OpenWhisk CodeGen
Type these commands in a terminal:
$ npm install
$ node main.js
The actions
directory should now be populated with github
action wrappers.
To deploy an action, go the the actions
directory and type this command:
$ wsk action create </namespaceName[/packageName]/entityName> <action.js>
For instance:
$ wsk action create getIssues getIssues.js
To deploy all actions, it is best to run wskdeploy
in the project root directory.
$ wskdeploy --allow-defaults=true
Several github
APIs require authentication.
For OAuth2 authentication, the recommended way is to use the OpenWhisk OAuth package to obtain a OAuth token. Alternatively for testing purpose, use a Personal access token.
Available on the IBM API Harmony