Skip to content

Add YAML Linter GHA #15

Add YAML Linter GHA

Add YAML Linter GHA #15

Workflow file for this run

name: Format YAML
on:
push:
tags: '*'
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 config
- name: Check formatting diff
if: steps.filter.outputs.julia_file_change == 'true'
run: |
git diff --color=always --exit-code