Skip to content

Run Scripts and Update README #17

Run Scripts and Update README

Run Scripts and Update README #17

Workflow file for this run

name: Run Scripts and Update README
on:
schedule:
- cron: '0 0 * * 0' # Runs every week
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
run-scripts:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# - name: Run main.py
# run: python main.py
# continue-on-error: true
- name: Run domains.py
run: python domains.py
continue-on-error: true
- name: Run update_readme_stats.py
run: python update_readme_stats.py
continue-on-error: true
- name: Commit and push changes
run: |
git config user.name "${{ secrets.USERNAME }}"
git config user.email "${{ secrets.EMAIL }}"
git add -A
git commit -m "Update Statistics files"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
branch: ${{ github.ref }}