🏷️ Create re-useable 'make badge' action (#126)

This commit is contained in:
Chris Mc
2021-01-27 22:39:56 -05:00
committed by GitHub
parent a735398ca8
commit 594dcf437e
2 changed files with 34 additions and 6 deletions

View File

@@ -36,15 +36,19 @@ jobs:
- name: badge success
if: github.event_name == 'push' && success()
run: |
mkdir -p badges/libressl/${{ matrix.libressl }}
echo '{ "schemaVersion": 1, "label": "${{ matrix.libressl }}", "message": "Passing", "color": "brightgreen" }' > badges/libressl/${{ matrix.libressl }}/shields.json
uses: ./.github/actions/badge
with:
category: libressl
label: ${{ matrix.libressl }}
- name: badge failure
if: github.event_name == 'push' && !success()
run: |
mkdir -p badges/libressl/${{ matrix.libressl }}
echo '{ "schemaVersion": 1, "label": "${{ matrix.libressl }}", "message": "Failing", "color": "red" }' > badges/libressl/${{ matrix.libressl }}/shields.json
uses: ./.github/actions/badge
with:
category: libressl
label: ${{ matrix.libressl }}
message: Failing
color: red
- name: badge publish
if: github.event_name == 'push'