@@ -46,25 +46,29 @@ jobs:
46
46
# Unzip the package because Upload Artifact will zip up the files
47
47
- name : Unzip DFU package
48
48
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
+ env :
51
+ ref_name : ${{ github.ref_name }}
52
+ run : echo "REF_NAME=${ref_name//\//-}" >> $GITHUB_ENV
49
53
- name : Upload DFU artifacts
50
54
uses : actions/upload-artifact@v3
51
55
with :
52
- name : InfiniTime DFU ${{ github.head_ref }}
56
+ name : InfiniTime DFU ${{ env.REF_NAME }}
53
57
path : ./build/output/pinetime-mcuboot-app-dfu/*
54
58
- name : Upload MCUBoot image artifacts
55
59
uses : actions/upload-artifact@v3
56
60
with :
57
- name : InfiniTime MCUBoot image ${{ github.head_ref }}
61
+ name : InfiniTime MCUBoot image ${{ env.REF_NAME }}
58
62
path : ./build/output/pinetime-mcuboot-app-image-*.bin
59
63
- name : Upload standalone ELF artifacts
60
64
uses : actions/upload-artifact@v3
61
65
with :
62
- name : InfiniTime image ${{ github.head_ref }}
66
+ name : InfiniTime image ${{ env.REF_NAME }}
63
67
path : ./build/output/src/pinetime-app-*.out
64
68
- name : Upload resources artifacts
65
69
uses : actions/upload-artifact@v3
66
70
with :
67
- name : InfiniTime resources ${{ github.head_ref }}
71
+ name : InfiniTime resources ${{ env.REF_NAME }}
68
72
path : ./build/output/infinitime-resources-*.zip
69
73
70
74
build-simulator :
@@ -105,7 +109,7 @@ jobs:
105
109
- name : Upload simulator executable
106
110
uses : actions/upload-artifact@v3
107
111
with :
108
- name : infinisim-${{ github.head_ref }}
112
+ name : infinisim-${{ env.REF_NAME }}
109
113
path : build_lv_sim/infinisim
110
114
111
115
get-base-ref-size :
0 commit comments