-
-
Notifications
You must be signed in to change notification settings - Fork 185
69 lines (57 loc) · 1.91 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Badges
on:
schedule:
- cron: '24 03 * * 3'
workflow_dispatch:
permissions: {}
jobs:
downloads:
name: Docker pulls
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get package downloads
id: downloads
uses: ./misc/action/package-downloads
with:
url: ${{ github.server_url }}
repo: ${{ github.repository }}
package: publish-unit-test-result-action
- name: Create badge
uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf
with:
label: Docker pulls
status: ${{ steps.downloads.outputs.total_downloads }} (${{ steps.downloads.outputs.recent_downloads_per_day }}/day)
color: blue
path: downloads.svg
- name: Upload badge to Gist
uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/EnricoMi/612cb538c14731f1a8fefe504f519395
file: downloads.svg
workflows:
name: Dependent workflows
runs-on: ubuntu-latest
permissions:
packages: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch workflows
id: workflows
uses: ./misc/action/fetch-workflows
- name: Create badge
uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf
with:
label: GitHub Workflows
status: ${{ steps.workflows.outputs.total_workflows }}
color: blue
path: workflows.svg
- name: Upload badge to Gist
uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/EnricoMi/612cb538c14731f1a8fefe504f519395
file: workflows.svg