From 0f0f9672649f6328f685874fdac6e3af3077ebd4 Mon Sep 17 00:00:00 2001 From: chicrock Date: Thu, 12 Sep 2024 16:11:09 +0900 Subject: [PATCH] [chore] Update the json_validate.yml for workflows --- .github/workflows/json_validate.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/json_validate.yml b/.github/workflows/json_validate.yml index 78ffdb31ac..faaff03c5e 100644 --- a/.github/workflows/json_validate.yml +++ b/.github/workflows/json_validate.yml @@ -5,7 +5,16 @@ on: push: branches: - - master + - main + + pull_request_target: + types: + - opened + - edited + branches: + - main + paths: + - '**.json' jobs: validate-config: @@ -16,13 +25,13 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Install jsonlint run: npm install -g @prantlf/jsonlint - name: Lint JSON files run: | - jsonlint -q ./**/*.json + jsonlint ./ -q