mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-12-01 01:14:27 +00:00
🏷️ Create re-useable 'make badge' action (#126)
This commit is contained in:
16
.github/workflows/libresssl.yml
vendored
16
.github/workflows/libresssl.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user