Skip to content

Commit

Permalink
Rename upload artifact (#181)
Browse files Browse the repository at this point in the history
* reference action by exact commit

* reference render by full filepath

* rename uploaded filename based on input filename
  • Loading branch information
chrisfenner authored Sep 11, 2024
1 parent 976d69d commit c1ff2cf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ jobs:
key: latex-${{ inputs.input }}-${{ inputs.container-version }}-${{ github.run_id }}
restore-keys: latex-${{ inputs.input }}-${{ inputs.container-version }}

# Note: It appears that we can't pass variables into 'uses:' below to allow callers to
# request a version of the action. Referencing it by local path breaks external workflows
# that call to this one.
# The unfortunate workaround is for this file to be updated to point at specific commits
# and reference that version of the action file in this reusable workflow.
# Note: It appears that we can't pass variables into 'uses:' below to allow callers to
# request a version of the action. Referencing it by local path breaks external workflows
# that call to this one.
Expand Down Expand Up @@ -118,20 +123,21 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
tag: ${{ github.ref }}
asset_name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
overwrite: true
file_glob: true
# Always upload all PDF and log files to the workflow artifacts
- name: Upload pdfs
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: PDF
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.pdf
path: |
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.pdf
if: always()
- name: Upload logs
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: Logs
name: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.log
path: |
${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}.*.log
if: always()

0 comments on commit c1ff2cf

Please sign in to comment.