diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2eb8a95990..d3ad52536c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,25 +46,29 @@ jobs: # Unzip the package because Upload Artifact will zip up the files - name: Unzip DFU package run: unzip ./build/output/pinetime-mcuboot-app-dfu-*.zip -d ./build/output/pinetime-mcuboot-app-dfu + - name: Set head_ref, but replace slashes with dashes. + env: + ref_name: ${{ github.head_ref }} + run: echo "HEAD_REF=${ref_name/\//-}" >> $GITHUB_ENV - name: Upload DFU artifacts uses: actions/upload-artifact@v3 with: - name: InfiniTime DFU ${{ github.head_ref }} + name: InfiniTime DFU ${{ env.HEAD_REF }} path: ./build/output/pinetime-mcuboot-app-dfu/* - name: Upload MCUBoot image artifacts uses: actions/upload-artifact@v3 with: - name: InfiniTime MCUBoot image ${{ github.head_ref }} + name: InfiniTime MCUBoot image ${{ env.HEAD_REF }} path: ./build/output/pinetime-mcuboot-app-image-*.bin - name: Upload standalone ELF artifacts uses: actions/upload-artifact@v3 with: - name: InfiniTime image ${{ github.head_ref }} + name: InfiniTime image ${{ env.HEAD_REF }} path: ./build/output/src/pinetime-app-*.out - name: Upload resources artifacts uses: actions/upload-artifact@v3 with: - name: InfiniTime resources ${{ github.head_ref }} + name: InfiniTime resources ${{ env.HEAD_REF }} path: ./build/output/infinitime-resources-*.zip build-simulator: @@ -105,7 +109,7 @@ jobs: - name: Upload simulator executable uses: actions/upload-artifact@v3 with: - name: infinisim-${{ github.head_ref }} + name: infinisim-${{ env.HEAD_REF }} path: build_lv_sim/infinisim get-base-ref-size: