Skip to content

Commit

Permalink
Use action-validator to valdate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Jan 10, 2024
1 parent 9b72edc commit f312b22
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/validate_workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Workflow validation

on:
push:
paths:
- '.github/workflows/*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout checkbox monorepo
uses: actions/checkout@v3
- name: Install action-validator with asdf
uses: asdf-vm/actions/install@v3
with:
tool_versions: |
action-validator 0.5.1
- name: Lint Actions
run: |
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) \
| xargs -I {} action-validator --verbose {}

0 comments on commit f312b22

Please sign in to comment.