-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 841 Bytes
/
leetcode-sync.yml
File metadata and controls
32 lines (27 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Sync LeetCode Submissions
on:
schedule:
- cron: "0 23 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Sync LeetCode submissions
uses: joshcai/leetcode-sync@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
leetcode-session: ${{ secrets.LEETCODE_SESSION }}
leetcode-csrftoken: ${{ secrets.LEETCODE_CSRF_TOKEN }}
destination-folder: "."
- name: Commit and push changes
run: |
git config --global user.name "Rispa Joseph"
git config --global user.email "rizpahjoseph@gmail.com"
git add .
git commit -m "Sync LeetCode submissions" || echo "No changes"
git push