1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
prometheus-operator/.github/workflows/actionlint.yml
Dhruv 26e72997e8
Feat: Implemented Github Action linter (#7123)
* 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>
2024-11-22 10:35:54 +05:30

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