Skip to content

Commit 195d3cb

Browse files
create LeetCode sync workflow
1 parent 7756646 commit 195d3cb

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/leetcode.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Sync LeetCode
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * *" # Runs once a day at 00:00 UTC
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Sync
12+
uses: joshcai/leetcode-sync@v1.7
13+
with:
14+
github-token: ${{ github.token }}
15+
leetcode-csrf-token: ${{ secrets.LEETCODE_CSRF_TOKEN }}
16+
leetcode-session: ${{ secrets.LEETCODE_SESSION }}
17+
destination-folder: "leetcode-solutions"
18+

0 commit comments

Comments
 (0)