Skip to content

Pulled in new GH actions #1

Pulled in new GH actions

Pulled in new GH actions #1

name: Validate Event YAML
on:
pull_request:
paths:
- 'events.yaml'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Validate YAML
run: |
python .github/scripts/validate_yaml.py
- name: Comment PR
uses: actions/github-script@v6
if: failure()
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.name,
body: 'The YAML validation failed. Please check the format of your event data.'
})