Skip to content

Adding Spell Address #7

Adding Spell Address

Adding Spell Address #7

name: Validate Markdown
on:
pull_request_target:
types: [opened, syncrhonze, reopened]
paths:
- 'governance/votes/*.md'
jobs:
validate:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install PyGithub python-frontmatter requests web3
- name: Validate Markdown Files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: python .github/scripts/validate_markdown.py