ci: add a GitHub Action to lint YAML files (#13) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: YAML Validation | |
on: [push, workflow_dispatch] | |
jobs: | |
yaml-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/[email protected] | |
- name: Lint YAML files | |
uses: karancode/[email protected] | |
with: | |
yamllint_config_datapath: .yamllint.yml | |
yamllint_strict: true | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |