You've already forked dynamic-badges-action
24 lines
614 B
YAML
24 lines
614 B
YAML
name: Build Badges
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
answer-badge:
|
|
name: Create Answer Badge
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get the Numbers
|
|
run: echo "ANSWER=42" >> $GITHUB_ENV
|
|
- name: Create the Badge
|
|
uses: schneegans/dynamic-badges-action@feature/update-only-if-changed
|
|
with:
|
|
auth: ${{ secrets.GIST_SECRET }}
|
|
gistID: 2ab8f1d386f13aaebccbd87dac94068d
|
|
filename: answer.json
|
|
label: The Answer
|
|
message: is ${{ env.ANSWER }}
|
|
valColorRange: ${{ env.ANSWER }}
|
|
maxColorRange: 100
|
|
minColorRange: 0
|
|
|