Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

chore: Update README.md #76

chore: Update README.md

chore: Update README.md #76

# name: Automatic Data Update
# on:
# schedule:
# - cron: '0 0 */2 * *'
# jobs:
# automatic-data-update:
# name: "Automatic Data Update"
# runs-on: "ubuntu-latest"
# strategy:
# matrix:
# python-version: ["3.9"]
# fail-fast: false
# steps:
# - uses: actions/checkout@v3
# with:
# ref: develop
# - uses: "actions/setup-python@v2"
# with:
# python-version: "${{ matrix.python-version }}"
# - name: "Install Poetry"
# run: "python -m pip install poetry"
# - name: "Install dependencies"
# run: "python -m poetry install"
# - name: "Run Script to Fetch Data"
# run: |
# export PYTHONPATH=.
# python update.py
# - name: "Commit & Push the data"
# run: |
# git config user.name github-actions
# git config user.email [email protected]
# git add .
# git commit -m "Automatic data update"
# git push
# - name: Create Pull Request
# uses: actions/github-script@v6
# with:
# script: |
# const { repo, owner } = context.repo;
# const result = await github.rest.pulls.create({
# title: 'Automatic Data Update',
# owner,
# repo,
# head: '${{ github.ref_name }}',
# base: 'main',
# body: [
# 'Automatic LeetCode data update',
# ]
# });