Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hofstadter-io/ghacue
GitHub Actions schema in CUE
https://github.com/hofstadter-io/ghacue
Last synced: 3 months ago
JSON representation
GitHub Actions schema in CUE
- Host: GitHub
- URL: https://github.com/hofstadter-io/ghacue
- Owner: hofstadter-io
- License: bsd-3-clause
- Created: 2021-07-30T01:42:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T03:30:18.000Z (over 1 year ago)
- Last Synced: 2024-06-15T04:35:00.602Z (5 months ago)
- Language: CUE
- Size: 25.4 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cue - ghacue - GitHub Actions schema in CUE. (Projects)
README
# ghacue
GitHub Actions schema in CUE
### Installing
There are a few ways to reference
- copy `schema.cue` next to your `workflow.yml` files
- `hof mod` to [manage as a dependency](https://cuetorials.com/first-steps/modules-and-packages/#dependency-management)### Schemas
[schema.cue](https://github.com/hofstadter-io/ghacue/blob/main/schema.cue) is hand written
[import/](https://github.com/hofstadter-io/ghacue/tree/main/import) come from the Schema Store
### Validating a Workflow
We use `cue vet` to validate a `workflow.yml` against the schema
```shell
cue vet schema.cue my-workflow.yml
```### Generating a Workflow
We use `cue export` to output the yaml form of a workflow written in CUE.
```shell
cue export my-workflow.cue -o my-workflow.yml
```