Go package for parsing and compiling the drone yaml file
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Thomas Boerger 6c40ddf74e
Check matrix conditions correctly
We are using matrix conditions heavily, and without that fix they are
ignored and could lead to undefined variables. With this fix only
matching matrix conditions are getting converted from the legacy format.
5 years ago
samples add license headers 5 years ago
yaml Check matrix conditions correctly 5 years ago
.drone.yml update yaml 5 years ago
.gitignore initial commit 6 years ago
CHANGELOG.md support cron job name in when clause 5 years ago
LICENSE improve headers 5 years ago
NOTICE Update notice [CI SKIP] 5 years ago
README.md revert pull request #17 5 years ago
go.mod ability to set USER 5 years ago
go.sum ability to set USER 5 years ago
main.go revert pull request #17 5 years ago

README.md

Package yaml provides a parser, linter, formatter and compiler for the drone configuration file format.

Lint the yaml file:

$ drone-yaml lint samples/simple.yml

Format the yaml file:

$ drone-yaml fmt samples/simple.yml
$ drone-yaml fmt samples/simple.yml --save

Sign the yaml file using a 32-bit secret key:

$ drone-yaml sign 642909eb4c3d47e33999235c0598353c samples/simple.yml
$ drone-yaml sign 642909eb4c3d47e33999235c0598353c samples/simple.yml --save

Verify the yaml file signature:

$ drone-yaml verify 642909eb4c3d47e33999235c0598353c samples/simple.yml

Compile the yaml file:

$ drone-yaml compile samples/simple.yml samples/simple.json