Update badges.yml #4
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: Badges | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
update-badges: | |
name: Update Badges | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade pip pandas Pillow | |
- name: Get the Numbers | |
run: | | |
echo "WEEKLY=$(python generate.py --weekly)" >> $GITHUB_ENV | |
- name: Create Weekly-Badge | |
uses: schneegans/dynamic-badges-action@master | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: 2465ffe7d69897864623f96ddad57e5a | |
filename: weekly.svg | |
label: 💞 Receives | |
message: $${{ env.WEEKLY }} / week | |
valColorRange: ${{ env.WEEKLY }} | |
maxColorRange: 50 | |
minColorRange: 0 |