Skip to content

Sync Leetcode

Sync Leetcode #6

Workflow file for this run

name: Sync Leetcode
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 6"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync
id: leetcode_sync
uses: joshcai/[email protected]
with:
github-token: ${{ github.token }}
leetcode-csrf-token: ${{ secrets.LEETCODE_CSRF_TOKEN }}
leetcode-session: ${{ secrets.LEETCODE_SESSION }}
destination-folder: my-folder
verbose: true
commit-header: "[LeetCode Sync]"
continue-on-error: true
- name: Debug LeetCode Response
if: failure()
run: |
cat /home/runner/work/_actions/joshcai/leetcode-sync/v1.7/dist/index.js
# Log response to see the structure
RESPONSE=$(cat /home/runner/work/_actions/joshcai/leetcode-sync/v1.7/dist/index.js | grep "response.data.data.submissionList")
echo "LeetCode API Response: $RESPONSE"