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:
parent
364fb23ab0
commit
6f97085285
24
.github/workflows/actions-lint.yml
vendored
Normal file
24
.github/workflows/actions-lint.yml
vendored
Normal 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
|
1
.github/workflows/javascript-formatting.yml
vendored
1
.github/workflows/javascript-formatting.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user