1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Lint *.yaml workflows, too (#20445)

* Lint .yaml workflows, too
* Ignore workflow that uses non-GA-ed feature
* Update to the latest actions-linter to fix the partial-expression problem (cschleiden/github-actions-parser#18)
This commit is contained in:
James M. Greene
2021-07-21 14:13:44 -05:00
committed by GitHub
parent aa89ca8e26
commit a0eff64e4f
2 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ export default [
'andymckay/labeler@22d5392de2b725cea4b284df5824125054049d84',
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',
'cschleiden/actions-linter@5f9827c6b731d2c2480cd3bccf82079bbba832fc',
'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
'docker://chinthakagodawita/autoupdate-action:v1',
'dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58',

View File

@@ -11,9 +11,11 @@ on:
- main
paths:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
pull_request:
paths:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
jobs:
lint:
@@ -24,6 +26,6 @@ jobs:
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Run linter
uses: cschleiden/actions-linter@5f9827c6b731d2c2480cd3bccf82079bbba832fc
uses: cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa
with:
workflows: '[".github/workflows/*.yml"]'
workflows: '[".github/workflows/*.yml", ".github/workflows/*.yaml", "!.github/workflows/remove-from-fr-board.yaml"]'