-
Notifications
You must be signed in to change notification settings - Fork 208
40 lines (35 loc) · 1022 Bytes
/
badges.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Create Badge
on:
push:
branches:
- master
schedule:
- cron: '0 * * * *' # every hour
workflow_dispatch:
jobs:
create-badge:
name: Create Badge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: confluentinc/kafka-docker-playground-internal
fetch-depth: 0
ssh-key: ${{ secrets.GH_SSH_KEY_FILE }}
ssh-strict: 'false'
- name: Get number of reproduction models
run: |
NB=$(find . -name *repro*.sh | wc -l)
echo "NB=$NB" >> $GITHUB_ENV
# https://github.com/marketplace/actions/dynamic-badges
- name: Create Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: b7d51da11b2e8a7bdd1d2e45d4aaa2e5
filename: badges.json
label: reproduction models
message: ${{ env.NB }}
color: green
namedLogo: files