Skip to content

Ping Leetcode API for updates #3272

Ping Leetcode API for updates

Ping Leetcode API for updates #3272

Workflow file for this run

name: Ping Leetcode API for updates
on:
schedule:
- cron: '*/10 * * * *'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run UpdateManager
run: |
ls -R
javac UpdateManager/*.java
java -cp UpdateManager Main
rm UpdateManager/*.class
working-directory: ./
- name: Commit and push changes
run: |
git config --global user.name 'Leetcode Update Bot'
git config --global user.email 'leetcode-update-bot@users.noreply.github.com'
git add .
git commit -m 'Update progress data' || echo "No changes to commit"
git push origin main