diff --git a/.github/workflows/pr-check_cspell_lists.yml b/.github/workflows/pr-check_cspell_lists.yml index 209ccf9b1dd33e3..fc0050a64f6b2e6 100644 --- a/.github/workflows/pr-check_cspell_lists.yml +++ b/.github/workflows/pr-check_cspell_lists.yml @@ -3,7 +3,10 @@ name: Check cSpell lists on: pull_request: paths: + - .github/workflows/pr-check_cspell_lists.yml + - .nvmrc - .vscode/dictionaries/* + - scripts/sort_and_unique_file_lines.js # No GITHUB_TOKEN permissions, as we don't use it. permissions: {} diff --git a/.github/workflows/pr-check_javascript.yml b/.github/workflows/pr-check_javascript.yml index 882b48f655ef2fe..d019e96536e912d 100644 --- a/.github/workflows/pr-check_javascript.yml +++ b/.github/workflows/pr-check_javascript.yml @@ -3,10 +3,14 @@ name: JavaScript lint on: pull_request: paths: + - .github/workflows/pr-check_javascript.yml - .nvmrc + - package.json + - package-lock.json + - "*.js" + - "*.mjs" - "**/*.js" - "**/*.mjs" - - .github/workflows/pr-check_javascript.yml # No GITHUB_TOKEN permissions, as we only use it to increase API limit. permissions: {} diff --git a/.github/workflows/pr-check_json.yml b/.github/workflows/pr-check_json.yml index 3a5656ee3760874..d5cfddb62d1e590 100644 --- a/.github/workflows/pr-check_json.yml +++ b/.github/workflows/pr-check_json.yml @@ -3,10 +3,12 @@ name: JSON lint on: pull_request: paths: + - .github/workflows/pr-check_json.yml - .nvmrc + - "*.json" + - "*.jsonc" - "**/*.json" - "**/*.jsonc" - - .github/workflows/pr-check_json.yml # No GITHUB_TOKEN permissions, as we only use it to increase API limit. permissions: {} diff --git a/.github/workflows/pr-check_scripts.yml b/.github/workflows/pr-check_scripts.yml index 63b23b5e3761a6c..ff8aa3467eccbf2 100644 --- a/.github/workflows/pr-check_scripts.yml +++ b/.github/workflows/pr-check_scripts.yml @@ -3,10 +3,10 @@ name: Check scripts on: pull_request: paths: + - .github/workflows/pr-check_scripts.yml - .nvmrc - package.json - package-lock.json - - .github/workflows/pr-check_scripts.yml # No GITHUB_TOKEN permissions, as we only use it to increase API limit. permissions: {} diff --git a/.github/workflows/pr-check_url-issues.yml b/.github/workflows/pr-check_url-issues.yml index 43facc221e58dab..1ecbe41ed2eb730 100644 --- a/.github/workflows/pr-check_url-issues.yml +++ b/.github/workflows/pr-check_url-issues.yml @@ -3,7 +3,12 @@ name: Check URL issues on: pull_request: paths: + - .github/workflows/pr-check_url-issues.yml + - .nvmrc + - package.json + - package-lock.json - "files/**/*.md" + - scripts/log-url-issues.js # No GITHUB_TOKEN permissions, as we don't use it. permissions: {} diff --git a/.github/workflows/pr-check_yml.yml b/.github/workflows/pr-check_yml.yml index feb9d70d4c0ef43..673e35bc0c46a9c 100644 --- a/.github/workflows/pr-check_yml.yml +++ b/.github/workflows/pr-check_yml.yml @@ -3,10 +3,12 @@ name: Lint YAML on: pull_request: paths: + - .github/workflows/pr-check_yml.yml - .nvmrc + - package.json - package-lock.json + - "*.yml" - "**/*.yml" - - .github/workflows/pr-check_yml.yml # No GITHUB_TOKEN permissions, as we only use it to increase API limit. permissions: {} diff --git a/scripts/sort_and_unique_file_lines.js b/scripts/sort_and_unique_file_lines.js index c146edff4fb244d..96d5bcb6e4d8aaa 100644 --- a/scripts/sort_and_unique_file_lines.js +++ b/scripts/sort_and_unique_file_lines.js @@ -37,7 +37,7 @@ for (const filePath of filePaths) { return a < b ? -1 : a > b ? 1 : 0; }); - for (let i = 0; i < lines.length; ) { + for (let i = 0; i < lines.length;) { const line = lines[i]; if (line.trim() !== "") { uniq.push(line);