Skip to content

Commit 30f5485

Browse files
authored
Bump version of GH Actions and update URLs (#37)
1 parent 66f4324 commit 30f5485

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/advanced.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
convert_via_pandoc:
77
runs-on: ubuntu-22.04
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: create file list
1111
id: files_list
1212
run: |
@@ -15,10 +15,10 @@ jobs:
1515
mkdir output # create output dir
1616
# this will also include README.md
1717
echo "files=$(printf '"%s" ' *.md)" > $GITHUB_OUTPUT
18-
- uses: docker://pandoc/latex:2.9
18+
- uses: docker://pandoc/latex:3.5
1919
with:
2020
args: --output=output/result.pdf ${{ steps.files_list.outputs.files }}
21-
- uses: actions/upload-artifact@v3
21+
- uses: actions/upload-artifact@v4
2222
with:
2323
name: output
2424
path: output

.github/workflows/long.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-22.04
88
steps:
99
- run: echo "foo" > input.txt # create an example file
10-
- uses: docker://pandoc/core:2.9
10+
- uses: docker://pandoc/core:3.5
1111
with:
1212
args: >- # allows you to break string into multiple lines
1313
--standalone

.github/workflows/simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
convert_via_pandoc:
77
runs-on: ubuntu-22.04
88
steps:
9-
- uses: docker://pandoc/core:2.9
9+
- uses: docker://pandoc/core:3.5
1010
with:
1111
args: "--help" # gets appended to pandoc command

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You do not *need* a separate GitHub Action.
2020
If you need LaTeX (because you want to convert through to PDF), you should use the `docker://pandoc/latex` image.
2121
Otherwise, the smaller `docker://pandoc/core` will suffice.
2222

23-
It is a good idea to be explicit about the pandoc version you require, such as `docker://pandoc/core:2.9`.
23+
It is a good idea to be explicit about the pandoc version you require, such as `docker://pandoc/core:3.5`.
2424
This way, any future breaking changes in pandoc will not affect your workflow.
2525
You can find out whatever the latest released docker image is on [docker hub](https://hub.docker.com/r/pandoc/core/tags).
2626
You should avoid specifying *no* tag or the `latest` tag -- these will float to the latest image and will expose your workflow to potentially breaking changes.
@@ -33,7 +33,7 @@ The string passed to `args` gets appended to the [`pandoc` command](https://pand
3333

3434
The below example is equivalent to running `pandoc --help`.
3535

36-
You can see it in action [here](http://github.com/maxheld83/pandoc-example).
36+
You can see it in action [here](https://github.com/pandoc/pandoc-action-example).
3737

3838
```yaml
3939
name: Simple Usage
@@ -44,7 +44,7 @@ jobs:
4444
convert_via_pandoc:
4545
runs-on: ubuntu-22.04
4646
steps:
47-
- uses: docker://pandoc/core:2.9
47+
- uses: docker://pandoc/core:3.5
4848
with:
4949
args: "--help" # gets appended to pandoc command
5050
```
@@ -54,7 +54,7 @@ jobs:
5454
5555
Remember that as per the [GitHub Actions workflow syntax](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepswithargs), "an `array of strings` is not supported by the `jobs.<job_id>.steps.with.args` parameter.
5656
Pandoc commands can sometimes get quite long and unwieldy, but you must pass them as a *single* string.
57-
If you want to break up the string over several lines, you can use YAML's [block chomping indicator](http://www.yaml.org/spec/1.2/spec.html#id2794534):
57+
If you want to break up the string over several lines, you can use YAML's [block chomping indicator](https://yaml.org/spec/1.2.2/#8112-block-chomping-indicator):
5858

5959
```yaml
6060
name: Long Usage
@@ -66,15 +66,15 @@ jobs:
6666
runs-on: ubuntu-22.04
6767
steps:
6868
- run: echo "foo" > input.txt # create an example file
69-
- uses: docker://pandoc/core:2.9
69+
- uses: docker://pandoc/core:3.5
7070
with:
7171
args: >- # allows you to break string into multiple lines
7272
--standalone
7373
--output=index.html
7474
input.txt
7575
```
7676

77-
You can see it in action [here](http://github.com/maxheld83/pandoc-example).
77+
You can see it in action [here](https://github.com/pandoc/pandoc-action-example).
7878

7979

8080
## Advanced Usage
@@ -89,7 +89,7 @@ Only [GitHub Actions context and expression syntax](https://help.github.com/en/a
8989
If you want to make use of such shell features, you have to run that in a separate step in a `run` field and store the result in the GitHub actions context.
9090
The below workflow includes an example of how to do this to concatenate several input files.
9191

92-
You can see it in action (haha!) [here](http://github.com/maxheld83/pandoc-example).
92+
You can see it in action (haha!) [here](https://github.com/pandoc/pandoc-action-example).
9393

9494
```yaml
9595
name: Advanced Usage
@@ -100,7 +100,7 @@ jobs:
100100
convert_via_pandoc:
101101
runs-on: ubuntu-22.04
102102
steps:
103-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
104104
105105
- name: create file list
106106
id: files_list
@@ -111,11 +111,11 @@ jobs:
111111
# this will also include README.md
112112
echo "files=$(printf '"%s" ' *.md)" > $GITHUB_OUTPUT
113113
114-
- uses: docker://pandoc/latex:2.9
114+
- uses: docker://pandoc/latex:3.5
115115
with:
116116
args: --output=output/result.pdf ${{ steps.files_list.outputs.files }}
117117
118-
- uses: actions/upload-artifact@v3
118+
- uses: actions/upload-artifact@v4
119119
with:
120120
name: output
121121
path: output
@@ -132,7 +132,7 @@ Could not find data file templates/eisvogel.latex
132132
A work around to this is to specify the exact location on the filesystem of the template:
133133

134134
```
135-
- uses: docker://pandoc/extra:3.1.1.0
135+
- uses: docker://pandoc/extra:3.5
136136
with:
137137
args: content/cv.md --output=content/cv.pdf --template /.pandoc/templates/eisvogel.latex --listings -V block-headings
138138
```

0 commit comments

Comments
 (0)