Skip to content

Commit

Permalink
fix file globs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chrisfenner committed Feb 23, 2025
1 parent 8f024bb commit 70f16a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
file: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.pdf
tag: ${{ github.ref }}
asset_name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
overwrite: true
Expand All @@ -132,12 +132,12 @@ jobs:
with:
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
path: |
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.pdf
if: always()
- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.log
path: |
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.log
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}*.log
if: always()
2 changes: 1 addition & 1 deletion filter/convert-images.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Image (img)
-- Delete stale copies of this file. This makes it easier to cache only the latest converted pdfs
-- Don't do this if the "keepstaleimages" variable is set.
if not PANDOC_WRITER_OPTIONS.variables["keepstaleimages"] then
deleteFilesExcept(img.src .. ".*.convert.pdf", new_filename)
deleteFilesExcept(img.src .. "*.convert.pdf", new_filename)
end
img.src = new_filename
end
Expand Down

0 comments on commit 70f16a7

Please # to comment.