Sync Leetcode #3396
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Leetcode | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
#"0 0 1 * *" cron job to run once a month | |
#this runs once a week. "0 8 * * 6" | |
#"0 8 * * *" runs at 8:00 AM every day | |
#"0 * * * *" #runs every hour | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Sync | |
uses: joshcai/[email protected] | |
with: | |
github-token: ${{ secrets.LEETCODE_GITHUB_TOKEN }} | |
leetcode-csrf-token: ${{ secrets.LEETCODE_CSRF_TOKEN }} | |
leetcode-session: ${{ secrets.LEETCODE_SESSION }} | |
destination-folder: problems |