2022-12-29 00:21:09 +03:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
actionlint:
|
|
|
|
name: GitHub actions
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-05 23:50:59 +03:00
|
|
|
- name: Check out pull request code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
with:
|
|
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: github.event_name == 'push'
|
2022-12-29 00:21:09 +03:00
|
|
|
|
|
|
|
- uses: docker://rhysd/actionlint:latest
|
|
|
|
with:
|
2023-01-28 03:18:02 +03:00
|
|
|
args: -shellcheck= -color
|