LeetCode ranking analysis #9648
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LeetCode ranking analysis | |
on: | |
# push: | |
# branches: [ master ] | |
schedule: | |
- cron: '*/5 11-13 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests pyyaml matplotlib pytz | |
- name: Upload ranking graph and send line notification | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.LEETCODE_RANKING_TOKEN }} | |
LINE_BOT_ID: ${{ secrets.LEETCODE_RANKING_LINE_BOT_ID }} | |
LINE_CHANNEL_ACCESS_TOKEN: ${{ secrets.LEETCODE_RANKING_LINE_CHANNEL_ACCESS_TOKEN }} | |
run: | | |
python3 -m analysis --job LeetCodeRankingJob --github-api-token "${GITHUB_API_TOKEN}" --line-bot-id "${LINE_BOT_ID}" --line-channel-access-token "${LINE_CHANNEL_ACCESS_TOKEN}" |