Skip to content

Commit

Permalink
Sanitise artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Apr 22, 2024
1 parent e7467f1 commit fcc7675
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,18 @@ jobs:
private-key-passphrase: ${{ secrets.ETERNAL_LINUX_SIGNING_KEY_PASSPHRASE }}

- name: Create Outputs File
id: create-outputs-file
run: |
echo "DIGEST=${{ steps.push.outputs.digest }}" >> $OUTPUTS_FILE
echo "IMAGE_NAME=${{ env.IMAGE_NAME }}" >> $OUTPUTS_FILE
ARTIFACT_NAME="outputs-${{ env.IMAGE_NAME }}-${{ matrix.image-flavour }}-${{ matrix.fedora-version }}"
echo "ARTIFACT_NAME=${ARTIFACT_NAME//\//-}" >> $GITHUB_OUTPUT
- name: Upload Outputs File
uses: actions/upload-artifact@v4
with:
name: outputs-${{ env.IMAGE_NAME }}-${{ matrix.image-flavour }}-${{ matrix.fedora-version }}
name: ${{ steps.create-outputs-file.outputs.ARTIFACT_NAME }}
if-no-files-found: error
path: ${{ env.OUTPUTS_FILE }}

Expand Down Expand Up @@ -225,14 +229,18 @@ jobs:
private-key-passphrase: ${{ secrets.ETERNAL_LINUX_SIGNING_KEY_PASSPHRASE }}

- name: Create Outputs File
id: create-outputs-file
run: |
echo "DIGEST=${{ steps.push.outputs.digest }}" >> $OUTPUTS_FILE
echo "IMAGE_NAME=${{ env.IMAGE_NAME }}" >> $OUTPUTS_FILE
ARTIFACT_NAME=outputs-${{ env.IMAGE_NAME }}-${{ matrix.image-flavour }}-${{ matrix.fedora-version }}-nvidia${{ matrix.nvidia-version }}"
echo "ARTIFACT_NAME=${ARTIFACT_NAME//\//-}" >> $GITHUB_OUTPUT
- name: Upload Outputs File
uses: actions/upload-artifact@v4
with:
name: outputs-${{ matrix.image-flavour }}-${{ matrix.fedora-version }}-nvidia${{ matrix.nvidia-version }}
name: ${{ steps.create-outputs-file.outputs.ARTIFACT_NAME }}
if-no-files-found: error
path: ${{ env.OUTPUTS_FILE }}

Expand Down

0 comments on commit fcc7675

Please sign in to comment.