2022-11-11 08:49:08 -05:00
|
|
|
name: Actionlint
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- "release/**"
|
|
|
|
paths:
|
|
|
|
- ".github/**.yml"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/**.yml"
|
|
|
|
|
|
|
|
jobs:
|
2023-01-18 09:22:20 -05:00
|
|
|
actionlint:
|
2022-11-11 08:49:08 -05:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-11-11 08:49:08 -05:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-11-11 08:49:08 -05:00
|
|
|
|
|
|
|
- name: Setup Go
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-11-11 08:49:08 -05:00
|
|
|
with:
|
2023-03-08 04:05:36 -05:00
|
|
|
go-version: "1.20.2"
|
2022-11-11 08:49:08 -05:00
|
|
|
cache: true
|
|
|
|
|
2023-01-18 09:22:20 -05:00
|
|
|
- name: Install ShellCheck
|
2023-01-31 11:38:44 -05:00
|
|
|
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
|
2023-01-18 09:22:20 -05:00
|
|
|
with:
|
|
|
|
ignore_paths: "*"
|
2022-11-11 08:49:08 -05:00
|
|
|
|
|
|
|
- name: Install Actionlint
|
|
|
|
shell: bash
|
2023-01-17 10:12:23 -05:00
|
|
|
run: go install github.com/rhysd/actionlint/cmd/actionlint@7fdc9630cc360ea1a469eed64ac6d78caeda1234 # v1.6.22
|
2022-11-11 08:49:08 -05:00
|
|
|
|
|
|
|
- name: Run Actionlint
|
|
|
|
shell: bash
|
|
|
|
run: actionlint
|