Skip to content

Commit 66f4324

Browse files
authored
Update readme to include section on pandoc-extra and github actions (#30)
1 parent 57c1bb1 commit 66f4324

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ jobs:
121121
path: output
122122
```
123123

124+
## pandoc-extra and Github Actions
125+
126+
Because Github Actions rewrites the value of `$HOME` in runners the template directory cannot be found leading to errors such as:
127+
128+
```
129+
Could not find data file templates/eisvogel.latex
130+
```
131+
132+
A work around to this is to specify the exact location on the filesystem of the template:
133+
134+
```
135+
- uses: docker://pandoc/extra:3.1.1.0
136+
with:
137+
args: content/cv.md --output=content/cv.pdf --template /.pandoc/templates/eisvogel.latex --listings -V block-headings
138+
```
139+
124140
## Alternatives
125141

126142
If you need to have Pandoc installed and available globally, for example because it is being used in a subprocess by a library or application, you can use one of the two following alternative actions:

0 commit comments

Comments
 (0)