Skip to content

Extract elasticsearch version as workflow input (#137) #98

Extract elasticsearch version as workflow input (#137)

Extract elasticsearch version as workflow input (#137) #98

name: Validate workflows files
on:
push:
branches:
- main
paths:
- '.github/workflows/*.yml'
pull_request:
paths:
- '.github/workflows/*.yml'
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install action-validator with asdf
uses: asdf-vm/actions/install@v3
with:
tool_versions: |
action-validator 0.5.3
- name: Lint Workflows
run: |
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) \
| xargs -I {} action-validator --verbose {}