No description
  • JavaScript 65.8%
  • Makefile 22.3%
  • Dockerfile 11.9%
Find a file
oss-core-libraries-dashboard[bot] 4cf6cf6cba
[COMPLIANCE] Update Copyright and License Headers (#5)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2026-02-20 15:27:18 +05:30
action.yml Add schema as input 2021-10-04 15:05:08 -07:00
Dockerfile Fix copy 2021-10-04 14:31:53 -07:00
index.js Don't use notice for logs 2021-10-05 14:55:57 -07:00
LICENSE [COMPLIANCE] Update Copyright and License Headers (#5) 2026-02-20 15:27:18 +05:30
Makefile Generate package lock inside docker 2021-10-04 13:42:29 -07:00
package-lock.json Generate package lock inside docker 2021-10-04 13:42:29 -07:00
package.json Initial Commit 2021-10-04 12:51:38 -07:00
README.md Fix typo 2021-10-04 15:51:34 -07:00

Front Matter Schema Checker

This Github Action checks the schema of YAML front matter.

Usage

---
 name: Check Front Matter
 on: [push]

 jobs:
   front-matter:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
         with:
           fetch-depth: 0
       - name: Get changed files
         id: changed-files
         uses: tj-actions/changed-files@v1.1.3
         with:
           separator: ","
       - name: Front Matter
         id: lint
         uses: hashicorp/front-matter-schema@main
         with:
           files: ${{ steps.changed-files.outputs.all_modified_files }}
           directories: |
             items
           schema: |
             {
               "properties": {
                   "title": {
                      "type": "string",
                      "required": true
                 }
               }
             }

Given Github Actions not supporting multi-dimensional inputs like hashes, I'm just passing the schema in as raw JSON. This could however be the output of another step as well.