Badges #1238
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: | |
schedule: | |
- cron: '45 0 * * *' | |
jobs: | |
update-badges: | |
name: Update Badges | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Download jq | |
run: sudo apt-get update -y && sudo apt-get install -y jq | |
- name: Get the Numbers | |
run: | | |
echo "JSON_COUNT=$(jq length gee_catalog.json)" >> $GITHUB_ENV | |
- name: JSON counter | |
uses: schneegans/dynamic-badges-action@v1.0.0 | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: 34bc0c1280d475d3a69e3b60a706226e | |
filename: gee_catalog.json | |
label: GEE STAC Catalog | |
message: ${{ env.JSON_COUNT }} | |
color: orange |