8000 Update README.md · ME-ON1/Leetcode-SyncInAction@80ee162 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80ee162

Browse files
authored
Update README.md
1 parent 1c2a29c commit 80ee162

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
11
# LC-SyncInAction
2+
3+
Why take the effort of copy/pasting manually when you can make use of technology to do it for ya.
4+
5+
LC-SyncInAction solves this problem and takes your cookie in his hand to pull and push your Accepted solution everyday.
6+
7+
First run will pull all your Accepted solutions from LC ( which will take **1h 46 min to 2h 30 min approx** ) and create those submission in the current repository in the specified directory (root, if not provided )
8+
9+
All the run afterwards will fetch your last 20 Accepted submission everyday at 8AM UTC ( 1:30 IST ) daily.
10+
11+
### Requirements :
12+
13+
`cookie` value from the request headers https://leetcode.com/<your-username>
14+
15+
This cookie value has to be saved as a repository secret named as `cookieVal` which **has to be** passed as `${{ secrets.cookieVal }}` into action step [you can look here on how to do save a repository secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)
16+
17+
You can also pass location of directory, to option `solution_location` , where would you like to collect all your solutions ( the default is root directory ).
18+
19+
## Usage
20+
21+
Example use case of this action in your WORKFLOWS.
22+
23+
jobs :
24+
build :
25+
run-on : ubuntu-latest
26+
27+
steps :
28+
-name : Using LC-Collectinator
29+
uses : ME-ON1/Leetcode-SyncInAction
30+
with :
31+
cookieVal : ${{ secrets.cookieVal }} # secrets.cookieVal coming from repository secret
32+
solution_location : 'path/to/directory' # if any , default is root '.'
33+
34+
35+
## License
36+
37+
The scripts and documentation in this project are released under the [MIT License]()
38+
39+

0 commit comments

Comments
 (0)
0