-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (50 loc) · 1.33 KB
/
render-samples.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
name: render samples
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
render-samples:
runs-on: ubuntu-latest
container:
image: ghcr.io/trustedcomputinggroup/pandoc:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run the action on sample1
uses: ./
with:
input-md: sample1.md
output-pdf: sample1.pdf
output-docx: sample1.docx
output-tex: sample1.tex
- name: Run the action on sample2
uses: ./
with:
input-md: sample2.md
output-pdf: sample2.pdf
output-docx: sample2.docx
output-tex: sample2.tex
- name: Run the action on sample3
uses: ./
with:
input-md: sample3.md
output-pdf: sample3.pdf
output-docx: sample3.docx
output-tex: sample3.tex
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: samples
path: |
sample*.docx
sample*.tex
sample*.pdf
- name: Check in latest render
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate latest PDF
file_pattern: sample*.pdf
if: github.event_name != 'pull_request'