Skip to content

Commit 8ac6283

Browse files
authored
Add workflow_dispatch: to the example action yml to allow for easy manual runs from the UI
1 parent 4c39d94 commit 8ac6283

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ GitHub Action for syncing LeetCode submissions to a GitHub repository.
2626
name: Sync Leetcode
2727

2828
on:
29+
workflow_dispatch:
2930
schedule:
30-
- cron: '0 8 * * *'
31+
- cron: '0 8 * * 6'
3132

3233
jobs:
3334
build:
@@ -41,3 +42,5 @@ GitHub Action for syncing LeetCode submissions to a GitHub repository.
4142
leetcode-csrf-token: ${{ secrets.LEETCODE_CSRF_TOKEN }}
4243
leetcode-session: ${{ secrets.LEETCODE_SESSION }}
4344
```
45+
46+
5. 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

Comments
 (0)