From bbda318b801e1f8fb52fd6dc2f0dbd8aa7220a43 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 26 Oct 2023 20:13:46 +0700 Subject: [PATCH] set variable to sanitized stuff --- .github/workflows/build-katsu.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-katsu.yml b/.github/workflows/build-katsu.yml index 7a5b6ea..b72ae85 100644 --- a/.github/workflows/build-katsu.yml +++ b/.github/workflows/build-katsu.yml @@ -81,10 +81,17 @@ jobs: xz -z9 katsu-work/image/katsu.img -c > katsu-work/image/katsu-arm.img.xz popd + - name: sanitize artifact name + run: | + name=$(echo ${{ matrix.variant }} | sed 's/\//-/g') + + # set github variable + echo artifact=$name >> $GITHUB_ENV + - name: Upload ISO uses: actions/upload-artifact@v3 with: - name: ${{ matrix.variant }}-disk + name: ${{ env.artifact }}-disk path: katsu/katsu-work/image/*.img.xz @@ -131,8 +138,15 @@ jobs: katsu --output=iso modules/${{ matrix.variant }}.yaml popd + - name: sanitize artifact name + run: | + name=$(echo ${{ matrix.variant }} | sed 's/\//-/g') + + # set github variable + echo artifact=$name >> $GITHUB_ENV + - name: Upload ISO uses: actions/upload-artifact@v3 with: - name: ${{ matrix.variant }}-live + name: ${{ env.artifact }}-live path: katsu/out.iso