mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 01:06:27 +00:00
* ci: add actionlint workflow for GitHub Actions This workflow integrates actionlint into the CI pipeline to lint and validate GitHub Actions workflows. Fixes #7094 Signed-off-by: slashexx dhruvpuri.35@gmail.com Co-authored-by: Simon Pasquier <spasquie@redhat.com>
22 lines
No EOL
580 B
YAML
22 lines
No EOL
580 B
YAML
name: Lint GitHub action workflows
|
|
on:
|
|
push:
|
|
paths:
|
|
- ".github/workflows/**"
|
|
pull_request :
|
|
paths:
|
|
- ".github/workflows/**"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Download actionlint
|
|
id: get_actionlint
|
|
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
|
shell: bash
|
|
- name: Check workflow files
|
|
run: ${{ steps.get_actionlint.outputs.executable }} -color
|
|
shell: bash |