Skip to content

Commit

Permalink
Fix wheel generation artefact name (#125)
Browse files Browse the repository at this point in the history
Use github repository name for downloading the artefact for third party licenses in wheel generation

---------

Co-authored-by: Simon Beal <[email protected]>
  • Loading branch information
muddyfish and muddyfish authored Feb 1, 2024
1 parent 98468d7 commit a4a757c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Initialise environment
shell: bash
env:
REPO_NAME: ${{ github.event.repository.name }}
run: |
REPO_NAME_SAFE=$(echo $REPO_NAME | sed -e 's/[^A-Za-z0-9 \-\_]//g' -e 's/\s/-/g' -e 's/\([A-Z]\)/\L\1/g')
ARTIFACT_NAME="ort-results-${REPO_NAME_SAFE}--"
export ARTIFACT_NAME
printenv >> "$GITHUB_ENV"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
id: creds
Expand All @@ -48,7 +58,7 @@ jobs:
# https://github.com/actions/upload-artifact/issues/478
- uses: actions/download-artifact@v3
with:
name: "ort-results-s3connectorforpytorch--"
name: ${{ ARTIFACT_NAME }}

- name: Rename third party license
run: |
Expand Down Expand Up @@ -81,7 +91,7 @@ jobs:

- uses: actions/download-artifact@v3
with:
name: "ort-results-s3connectorforpytorch--"
name: ${{ ARTIFACT_NAME }}

- name: Copy license files
run: |
Expand Down

0 comments on commit a4a757c

Please sign in to comment.