Update gist with Code::Stats stats #3846
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: Update gist with Code::Stats stats | |
on: | |
push: | |
branches: | |
- master | |
- reenable-workflow | |
schedule: | |
- cron: "0 */3 * * *" | |
jobs: | |
update-gist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Update gist | |
run: python codestats_box.py | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIST_ID: ${{ secrets.GIST_ID }} | |
CODE_STATS_USERNAME: ${{ secrets.CODE_STATS_USERNAME }} | |
STATS_TYPE: ${{ secrets.STATS_TYPE }} |