@@ -36,20 +36,20 @@ jobs:
3636 if : ${{ steps.split.outputs._0 == 'ubuntu' }}
3737
3838 - name : Set image filename env var
39- run : echo "IMAGE_NAME =${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}" >> "$GITHUB_ENV"
39+ run : echo "IMAGE_FILENAME =${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}" >> "$GITHUB_ENV"
4040
4141 - uses : actions/cache@v4
4242 with :
4343 path : /home/runner/.cache/image-create
44- key : ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
44+ key : ${{ env.IMAGE_FILENAME }}-${{ github.head_ref || github.ref_name }}
4545 restore-keys : |
46- ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
47- ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
46+ ${{ env.IMAGE_FILENAME }}-${{ github.head_ref || github.ref_name }}
47+ ${{ env.IMAGE_FILENAME }}
4848 ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}
4949
5050 - run : |
5151 uv run disk-image-create vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
52- mv image.qcow2 "${IMAGE_NAME }.qcow2"
52+ mv image.qcow2 "${IMAGE_FILENAME }.qcow2"
5353 env:
5454 ELEMENTS_PATH: ${{ github.workspace }}/elements
5555 DIB_RELEASE: ${{ steps.split.outputs._1 }}
@@ -59,13 +59,13 @@ jobs:
5959 - name : Publish artifact
6060 uses : actions/upload-artifact@v4
6161 with :
62- name : ${{ env.IMAGE_NAME }}
63- path : ${{ env.IMAGE_NAME }}.qcow2
62+ name : ${{ env.IMAGE_FILENAME }}
63+ path : ${{ env.IMAGE_FILENAME }}.qcow2
6464 if-no-files-found : error
6565 retention-days : 7
6666
6767 - name : Upload image to release
6868 uses : softprops/action-gh-release@v1
6969 if : github.ref_type == 'tag'
7070 with :
71- files : ${{ env.IMAGE_NAME }}.qcow2
71+ files : ${{ env.IMAGE_FILENAME }}.qcow2
0 commit comments