Skip to content

Update README with LeetCode Daily Challenge #137

Update README with LeetCode Daily Challenge

Update README with LeetCode Daily Challenge #137

Workflow file for this run

name: Update README with LeetCode Daily Challenge
on:
schedule:
- cron: '1 0 * * *' # Runs daily at 00:01 UTC
workflow_dispatch: # Allows for manual triggering
jobs:
update-readme:
runs-on: ubuntu-latest
if: github.repository_owner == 'ContextLab' # only run if on the ContextLab (source) repository!
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests beautifulsoup4
- name: Fetch and update README with daily LeetCode problem details
run: python update_readme.py
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update README with LeetCode Daily Challenge"
branch: main
file_pattern: README.md