diff --git a/.github/workflows/tox-tools-release.yaml b/.github/workflows/tox-tools-release.yaml index 3b5ffc3e7..b9bbedf62 100644 --- a/.github/workflows/tox-tools-release.yaml +++ b/.github/workflows/tox-tools-release.yaml @@ -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: diff --git a/.github/workflows/validate_workflows.yaml b/.github/workflows/validate_workflows.yaml new file mode 100644 index 000000000..fe23eaf5c --- /dev/null +++ b/.github/workflows/validate_workflows.yaml @@ -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 {}