Skip to content

Badges

Badges #1265

Workflow file for this run

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