You've already forked dynamic-badges-action
🎉 Add example action
This commit is contained in:
21
.github/workflows/badges.yml
vendored
Normal file
21
.github/workflows/badges.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Badges
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
answer-badge:
|
||||
name: Create Answer Badge
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get the Numbers
|
||||
run: echo "::set-env name=ANSWER::42"
|
||||
- name: Create the Badge
|
||||
uses: schneegans/dynamic-badges-action@master
|
||||
with:
|
||||
auth: ${{ secrets.GIST_SECRET }}
|
||||
gistID: <gist-ID>
|
||||
filename: answer.json
|
||||
label: The Answer is
|
||||
message: ${{ env.ANSWER }}
|
||||
color: green
|
||||
|
||||
Reference in New Issue
Block a user