0

add Github actions linter to Github actions (#2521)

* add actions linter

* fix actions/checkout args

* trigger actions lint on both yml/yaml

...and other possible changes in workflow
This commit is contained in:
Meisam 2022-12-28 22:21:09 +01:00 committed by GitHub
parent 364fb23ab0
commit 6f97085285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

24
.github/workflows/actions-lint.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Lint
on:
push:
branches:
- webv2
paths:
- '.github/workflows/*'
pull_request:
branches:
- webv2
paths:
- '.github/workflows/*'
jobs:
actionlint:
name: GitHub actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker://rhysd/actionlint:latest
with:
args: -shellcheck= -color

View File

@ -61,7 +61,6 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
pull: --rebase --autostash
- name: Install Dependencies
run: npm install