Skip to content

Commit

Permalink
Use action-validator to valdate workflows (infra) (#927)
Browse files Browse the repository at this point in the history
* Use action-validator to valdate workflows

* Fixed wrong glob in tox pipeline
  • Loading branch information
Hook25 authored Jan 10, 2024
1 parent c9ad106 commit 4448fa2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tox-tools-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches: [ main ]
paths:
- tools/release/**
- tools/release/*
pull_request:
branches: [ main ]
paths:
- tools/release/**
- tools/release/*
workflow_dispatch:

jobs:
Expand Down
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 4448fa2

Please sign in to comment.