Restrict GitHub Actions runs to master branch #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: checklinks | |
on: | |
- push: | |
branches: | |
- master | |
- pull_request: | |
branches: | |
- master | |
- workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: install URL-checking script | |
run: | | |
pip install requests markdown beautifulsoup4 | |
wget https://raw.githubusercontent.com/yallop/check-markdown-urls/master/src/check_markdown_urls.py | |
- name: check the URLs | |
run: python check_markdown_urls.py README.md |