Skip to content

Commit

Permalink
Add action-validator workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Jul 21, 2023
1 parent b5a65c4 commit f55d872
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/action-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate workflow file syntax
on:
push:
branches: [master]
paths:
- .github/workflows/*
pull_request:
paths:
- .github/workflows/*
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
action-validator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: .github/workflows
- run: |
curl -o action_validator -fsSL https://github.com/mpalmer/action-validator/releases/download/v0.5.3/action-validator_linux_amd64
chmod +x action_validator
- run: ./action_validator .github/workflows/*

0 comments on commit f55d872

Please sign in to comment.