Skip to content

Commit

Permalink
Create check-action-file.yaml (#31)
Browse files Browse the repository at this point in the history
* Create check-action-file.yaml

* update trigger condition
  • Loading branch information
lcxznpy authored Apr 28, 2024
1 parent fb1bd2a commit 7ad2f0d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-action-file.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Yaml

on:
pull_request:
branches:
- main
- 'release/*'

permissions:
contents: read

jobs:
validate-github-actions-workflows:
name: Validate GitHub Actions workflows
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for any changed workflows
id: check-for-changed-workflows
uses: tj-actions/changed-files@v41
with:
files: |
.github/workflows/**.yaml
- name: Validate workflows
if: steps.check-for-changed-workflows.outputs.any_changed == 'true'
uses: dsanders11/[email protected]
with:
schema: https://json.schemastore.org/github-workflow.json
files: .github/workflows/**.yaml

0 comments on commit 7ad2f0d

Please sign in to comment.