Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a56ec99

Browse files
Merge branch 'joshcai:master' into master
2 parents 6198deb + b5371be commit a56ec99

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit
2828
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),
2929
e.g. `LEETCODE_CSRF_TOKEN` and `LEETCODE_SESSION`.
3030

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`.
3234

3335
Example workflow file:
3436

@@ -54,7 +56,7 @@ GitHub Action for automatically syncing LeetCode submissions to a GitHub reposit
5456
destination-folder: my-folder
5557
```
5658
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).
5860

5961
## Inputs
6062

‎src/action.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const LANG_TO_EXTENSION = {
88
'cpp': 'cpp',
99
'csharp': 'cs',
1010
'dart': 'dart',
11+
'elixir': 'ex',
1112
'golang': 'go',
1213
'java': 'java',
1314
'javascript': 'js',
@@ -18,6 +19,7 @@ const LANG_TO_EXTENSION = {
1819
'php': 'php',
1920
'python': 'py',
2021
'python3': 'py',
22+
'pythondata': 'py',
2123
'ruby': 'rb',
2224
'rust': 'rs',
2325
'scala': 'scala',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /