@@ -46,25 +46,27 @@ jobs:
4646 # Unzip the package because Upload Artifact will zip up the files
4747 - name : Unzip DFU package
4848 run : unzip ./build/output/pinetime-mcuboot-app-dfu-*.zip -d ./build/output/pinetime-mcuboot-app-dfu
49+ - name : Set ref_name, but replace slashes with dashes.
50+ run : echo "REF_NAME=${${{github.ref_name}}////-}" >> $GITHUB_ENV
4951 - name : Upload DFU artifacts
5052 uses : actions/upload-artifact@v3
5153 with :
52- name : InfiniTime DFU ${{ github.head_ref }}
54+ name : InfiniTime DFU ${{ env.REF_NAME }}
5355 path : ./build/output/pinetime-mcuboot-app-dfu/*
5456 - name : Upload MCUBoot image artifacts
5557 uses : actions/upload-artifact@v3
5658 with :
57- name : InfiniTime MCUBoot image ${{ github.head_ref }}
59+ name : InfiniTime MCUBoot image ${{ env.REF_NAME }}
5860 path : ./build/output/pinetime-mcuboot-app-image-*.bin
5961 - name : Upload standalone ELF artifacts
6062 uses : actions/upload-artifact@v3
6163 with :
62- name : InfiniTime image ${{ github.head_ref }}
64+ name : InfiniTime image ${{ env.REF_NAME }}
6365 path : ./build/output/src/pinetime-app-*.out
6466 - name : Upload resources artifacts
6567 uses : actions/upload-artifact@v3
6668 with :
67- name : InfiniTime resources ${{ github.head_ref }}
69+ name : InfiniTime resources ${{ env.REF_NAME }}
6870 path : ./build/output/infinitime-resources-*.zip
6971
7072 build-simulator :
@@ -105,7 +107,7 @@ jobs:
105107 - name : Upload simulator executable
106108 uses : actions/upload-artifact@v3
107109 with :
108- name : infinisim-${{ github.head_ref }}
110+ name : infinisim-${{ env.REF_NAME }}
109111 path : build_lv_sim/infinisim
110112
111113 get-base-ref-size :
0 commit comments