Check README GitHub Links #1
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: Check README GitHub Links | |
on: | |
workflow_dispatch: | |
jobs: | |
check-readmes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run Check GitHub READMEs Script | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
run: | | |
python scripts/eval.py | |
- name: Upload no_links.txt | |
if: success() && (steps.check-readmes.outputs.no_links != '') | |
uses: actions/upload-artifact@v3 | |
with: | |
name: no_links | |
path: no_links.txt | |
- name: Upload no_actions.txt | |
if: success() && (steps.check-readmes.outputs.no_actions != '') | |
uses: actions/upload-artifact@v3 | |
with: | |
name: no_actions | |
path: no_actions.txt | |
- name: Upload successful.txt | |
if: success() && (steps.check-readmes.outputs.successful != '') | |
uses: actions/upload-artifact@v3 | |
with: | |
name: successful | |
path: successful.txt | |
- name: Upload unsuccessful.txt | |
if: success() && (steps.check-readmes.outputs.unsuccessful != '') | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unsuccessful | |
path: unsuccessful.txt |