-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.32 KB
/
genOAFPexamples.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
name: Generate OAFP examples
on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
schedule:
- cron: '47 6 * * *'
workflow_dispatch:
jobs:
oafp-examples:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
# --------------------------
- name: Cache OpenAF runtime
uses: actions/cache@v1.2.1
with:
key : oaf-nightly
path: /tmp/oaf
# -------------------------
- uses: actions/checkout@v3
# ----------------------------
- name: Generate oafp examples
uses: openaf/ojob-action@v4
with:
dist: nightly
def : |
todo:
- Generate oafp examples
jobs:
- name: Generate oafp examples
lang: shell
exec: |
/tmp/oaf/oafp url="https://ojob.io/oafp-examples.yaml" in=yaml out=template template=utils/oafpExamples2MD.hbs > docs/guides/oafp/oafp-examples.md
# --------------------
- name: Commit changes
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: openaf/ojob-action@v4
with:
ojob: 'ojob.io/git/hub/contentIn'
args: 'message="Update\ OAFP\ examples" title="Automated\ generate\ oafp\ examples" paths="docs/guides/oafp/"'
dist: nightly