Skip to content

Commit

Permalink
增加yaml检查
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Jan 19, 2024
1 parent 172be32 commit 12b4f5a
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: generator

name: json-yaml-validate
on:
push:
branches: [ main ]
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read
pull-requests: write # enable write permissions for pull request comments

jobs:
build:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Update readme
uses: eryajf/yaml-readme@master
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/json-yaml-validate@v2.6.0 # replace with the latest version
with:
pattern: 'items/*/*.yaml'
username: eryajf
org: eryajf
repo: learn-github
sortby: '!zh'
groupby: kind
header: false
comment: "true" # enable comment mode

0 comments on commit 12b4f5a

Please sign in to comment.