Skip to content

Update Readme

Update Readme #2

Workflow file for this run

name: Update Readme
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.9' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python update_readme.py
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add ./profile/README.md
git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty)
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main