Check Repositories #99
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 Repositories | |
on: | |
schedule: # Run every day at midnight. | |
- cron: '0 0 * * *' | |
workflow_dispatch: # Allows manual triggering of the workflow. | |
jobs: | |
check-repositories: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
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 pyyaml | |
- name: Check for Outdated Repositories | |
id: check_repositories | |
run: | | |
python .github/scripts/check_repositories.py | |
- name: Create GitHub Issues for Outdated Repositories | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python .github/scripts/create_issues.py |