From a4a757c40864f07fb25173a8453c74dcfd793ef8 Mon Sep 17 00:00:00 2001 From: Simon Beal <5381483+muddyfish@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:26:53 +0000 Subject: [PATCH] Fix wheel generation artefact name (#125) Use github repository name for downloading the artefact for third party licenses in wheel generation --------- Co-authored-by: Simon Beal --- .github/workflows/wheels.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index a7a48fc5..ec128158 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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 @@ -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: | @@ -81,7 +91,7 @@ jobs: - uses: actions/download-artifact@v3 with: - name: "ort-results-s3connectorforpytorch--" + name: ${{ ARTIFACT_NAME }} - name: Copy license files run: |