Skip to content

Commit 70f16a7

Browse files
committed
fix file globs
We had a number of file globs like <something>.*.pdf that should've been <something>*.pdf, because in some cases the file is just <something>.pdf
1 parent 8f024bb commit 70f16a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/render.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
uses: svenstaro/upload-release-action@v2
122122
with:
123123
repo_token: ${{ secrets.GITHUB_TOKEN }}
124-
file: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
124+
file: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.pdf
125125
tag: ${{ github.ref }}
126126
asset_name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
127127
overwrite: true
@@ -132,12 +132,12 @@ jobs:
132132
with:
133133
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
134134
path: |
135-
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
135+
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.pdf
136136
if: always()
137137
- name: Upload logs
138138
uses: actions/upload-artifact@v4
139139
with:
140140
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.log
141141
path: |
142-
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.log
142+
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.log
143143
if: always()

filter/convert-images.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function Image (img)
8888
-- Delete stale copies of this file. This makes it easier to cache only the latest converted pdfs
8989
-- Don't do this if the "keepstaleimages" variable is set.
9090
if not PANDOC_WRITER_OPTIONS.variables["keepstaleimages"] then
91-
deleteFilesExcept(img.src .. ".*.convert.pdf", new_filename)
91+
deleteFilesExcept(img.src .. "*.convert.pdf", new_filename)
9292
end
9393
img.src = new_filename
9494
end

0 commit comments

Comments
 (0)