You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit
28
28
3. Add the values from step 1 as [GitHub secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository),
29
29
e.g. `LEETCODE_CSRF_TOKEN` and `LEETCODE_SESSION`.
30
30
31
-
4. Add a workflow file with this action under the `.github/workflows` directory, e.g. `sync_leetcode.yml`.
31
+
4. Go to REPO > settings > actions and in Workflow Permissions section give actions Read and Write permissions.
32
+
33
+
5. Add a workflow file with this action under the `.github/workflows` directory, e.g. `sync_leetcode.yml`.
32
34
33
35
Example workflow file:
34
36
@@ -54,7 +56,7 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit
54
56
destination-folder: my-folder
55
57
```
56
58
57
-
5. After you've submitted a LeetCode solution, run the workflow by going to the `Actions` tab, clicking the action name, e.g. `Sync Leetcode`, and then clicking `Run workflow`. The workflow will also automatically run once a week by default (can be configured via the `cron` parameter).
59
+
6. After you've submitted a LeetCode solution, run the workflow by going to the `Actions` tab, clicking the action name, e.g. `Sync Leetcode`, and then clicking `Run workflow`. The workflow will also automatically run once a week by default (can be configured via the `cron` parameter).
0 commit comments