Check Repositories for about.xml #1134
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 for about.xml | |
on: | |
schedule: | |
- cron: '0 */3 * * *' # Runs every three hours | |
workflow_dispatch: # Allows manual trigger | |
jobs: | |
check-files: | |
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 venv venv | |
source venv/bin/activate | |
pip install PyGitHub | |
- name: Run script | |
run: | | |
source venv/bin/activate | |
python check_repos.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN_ANDREI }} |