It's not manual, it's Manuel.
Manuel makes it easy to script up modifications to yaml
or json
files on Github, such as during a CI pipeline.
via npm
$ npm install -g manuel-js
export GH_TOKEN="<github personal access token with appropriate permissions>"
manuel \
--org dan-turner \
--repo manuel-js \
--branch test \
--file test/variables.yaml \
--author Manuel \
--email [email protected] \
--message "Update 'example-app'" \
--path example-app.image \
--value a98049c7251b6b12785da9666e10e14cd1cfcddc
Manuel supports both yaml
and json
, it will guess the format based on the extension of the --file
argument or you can specify explicitly with the --format
argument.
Options can be specified as arguments (as above), or in config files, or a combination of both. Values are merged in the following order precedence, from lowest to highest:
<home directory>/.manuel.yml
(good place to specifygithubToken
)<current dir>/.manuel.yml
- With the config argument
--config <path to a .yml>
- As individual arguments as in the usage example
See .travis.yml for an example of leveraging a mix of config files and CLI arguments.