Skip to content

Add YAML Linter GHA #12

Add YAML Linter GHA

Add YAML Linter GHA #12

Workflow file for this run

name: Format YAML
on:
push:
pull_request:
merge_group:
jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Download yamlfmt binary
run: |
curl -L https://github.com/google/yamlfmt/releases/download/v0.11.0/yamlfmt_0.11.0_Linux_x86_64.tar.gz -o yamlfmt
chmod +x yamlfmt
- name: Format YAML files
run: ./yamlfmt -d path/to/your/folder
exit-code: 0

Check failure on line 20 in .github/workflows/yaml_format.yml

View workflow run for this annotation

GitHub Actions / Format YAML

Invalid workflow file

The workflow is not valid. .github/workflows/yaml_format.yml (Line: 20, Col: 7): Unexpected value 'exit-code'
- name: Check formatting diff
if: steps.filter.outputs.julia_file_change == 'true'
run: |
git diff --color=always --exit-code