Skip to content

Commit

Permalink
Add linting for workflow files.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 21, 2024
1 parent fbad1a0 commit d1d6c60
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: Lint workflow files
on:
pull_request:
paths:
# Only run when changes are made to workflow files.
- '.github/workflows/**'
push:
branches:
- trunk
paths:
# Only run when changes are made to workflow files.
- '.github/workflows/**'

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
permissions:
security-events: write
actions: read
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-workflow-lint.yml@trunk

0 comments on commit d1d6c60

Please sign in to comment.