A composite GitHub Action that installs wfctl, the CLI for the GoCodeAlone workflow engine.
steps:
- uses: actions/checkout@v4
- uses: GoCodeAlone/setup-wfctl@v1
- run: wfctl infra plan -c infra.yamlsteps:
- uses: actions/checkout@v4
- uses: GoCodeAlone/setup-wfctl@v1
with:
version: 'v0.3.51'
- run: wfctl validate -c app.yamlname: Validate workflow config
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: GoCodeAlone/setup-wfctl@v1
with:
version: 'latest'
token: ${{ secrets.GITHUB_TOKEN }}
- run: wfctl validate -c config/app.yaml
- run: wfctl diff -c config/app.yaml --base main| Input | Description | Required | Default |
|---|---|---|---|
version |
wfctl version to install (e.g. v0.3.51, latest) |
No | latest |
token |
GitHub token for downloading releases | No | ${{ github.token }} |
Downloaded binaries are cached using actions/cache@v4 keyed on version, OS, and architecture. Subsequent runs with the same version skip the download.
MIT