-
-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (63 loc) · 1.74 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
name: Generate Badges
on:
push:
branches:
- develop
schedule:
- cron: "0 0 * * *"
jobs:
get-badges:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- run: npm install
- id: libyear
uses: ./
- run: mkdir badges
- uses: emibcn/badge-action@v1
with:
label: 'libyear drift'
status: ${{ steps.libyear.outputs.drift }} year(s) behind
color: 'blue'
path: 'badges/drift.svg'
- uses: emibcn/badge-action@v1
with:
label: 'libyear pulse'
status: ${{ steps.libyear.outputs.pulse }} year(s) behind
color: 'blue'
path: 'badges/pulse.svg'
- uses: emibcn/badge-action@v1
with:
label: 'libyear'
status: ${{ steps.libyear.outputs.releases }} release(s) behind
color: 'blue'
path: 'badges/releases.svg'
- uses: emibcn/badge-action@v1
with:
label: 'libyear'
status: ${{ steps.libyear.outputs.major }} major release(s) behind
color: 'blue'
path: 'badges/major.svg'
- uses: emibcn/badge-action@v1
with:
label: 'libyear'
status: ${{ steps.libyear.outputs.minor }} minor release(s) behind
color: 'blue'
path: 'badges/minor.svg'
- uses: emibcn/badge-action@v1
with:
label: 'libyear'
status: ${{ steps.libyear.outputs.patch }} patch release(s) behind
color: 'blue'
path: 'badges/patch.svg'
- uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: badges
FOLDER: badges
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SQUASH_HISTORY: true