File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update README with LeetCode Daily Challenge
2+
3+ on :
4+ schedule :
5+ - cron : ' 1 0 * * *' # Runs daily at 00:01 UTC
6+ workflow_dispatch : # Allows for manual triggering
7+
8+ jobs :
9+ update-readme :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v2
18+ with :
19+ python-version : ' 3.x'
20+
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install requests beautifulsoup4
25+
26+ - name : Run update_readme.py
27+ run : python update_readme.py
28+
29+ - name : Create GitHub issue on failure
30+ if : failure()
31+ uses : peter-evans/create-issue-from-file@v2
32+ with :
33+ title : " Update README with LeetCode Daily Challenge Failed"
34+ content : |
35+ The GitHub Action to update README with LeetCode Daily Challenge has failed.
36+ Please check the workflow logs for more details.
37+ labels : bug
You can’t perform that action at this time.
0 commit comments