-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.33 KB
/
versions-images.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
name: Version Images
on:
workflow_dispatch:
schedule:
- cron: '37 3 * * 6'
jobs:
Version-Images:
runs-on : ubuntu-latest
permissions:
contents: write
pull-requests: write
name : Version images
steps :
- uses: actions/checkout@v4
name: Checkout
- name: Cache OpenAF runtime
uses: actions/cache@v3
with:
key : oaf-nightly
path: /tmp/oaf
- name: Generate build versions badge
uses: openaf/ojob-action@v4
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ojob: '.github/ojobs/getVersions.yaml'
args: 'tag=build file=.github/build-versions.svg jsonfile=.github/build-versions.json'
dist: 'nightly'
- name: Generate latest versions badge
uses: openaf/ojob-action@v4
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ojob: '.github/ojobs/getVersions.yaml'
args: 'tag=latest file=.github/latest-versions.svg jsonfile=.github/latest-versions.json'
dist: 'nightly'
- uses: openaf/ojob-action@v4
name: Update badges
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ojob: 'ojob.io/git/hub/contentIn'
args: 'message="update\ badge\ {{date}}/{{time}}" title="Update\ badge" paths=.github/'
dist: 'nightly'