Skip to content

Commit

Permalink
reference output file name in upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Sep 10, 2024
1 parent ddded38 commit c918bb4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ jobs:
image: ${{ inputs.container }}:${{ inputs.container-version }}
name: Render
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

# Use the input file name as the base filename for the output
# Use the input file name (no extension) as the base filename for the output
- name: Calculate output file name
id: gen_output_name
run: |
Expand All @@ -46,6 +40,12 @@ jobs:
echo OUTPUT_FILENAME="${filename}" >> "$GITHUB_OUTPUT"
echo output filename: ${filename}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

# Cache the LaTeX files. Use input file and container version in the cache
# key so that the cache is invalidated upon file change or container
# version change.
Expand Down Expand Up @@ -102,12 +102,12 @@ jobs:
with:
name: PDF
path: |
${{ inputs.output }}.*.pdf
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
if: always()
- name: Upload logs
uses: actions/upload-artifact@master
with:
name: Logs
path: |
${{ inputs.output }}.*.log
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.log
if: always()

0 comments on commit c918bb4

Please sign in to comment.