Skip to content

Commit

Permalink
Create lint-vocab.yml in workflows
Browse files Browse the repository at this point in the history
This is the PR-actionable part of #157 (comment). Note that extra actions are needed to be done by the maintainer of the repository to ensure that the result of the github actions determine the content of gh-pages.
  • Loading branch information
iherman authored Apr 7, 2024
1 parent 4bda982 commit b5477a7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint-vocab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint VC Vocabulary
on:
pull_request:
paths:
- 'vocab/security/vocabulary.yml'
- 'vocab/security/template.html'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: actions/checkout/@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Lint Security Vocabulary
run: |
npm install yml2vocab
npm update yml2vocab
./node_modules/.bin/yml2vocab -v vocab/vocabulary.yml -t vocab/template.html

0 comments on commit b5477a7

Please sign in to comment.