File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9292 - name : Rename firmware file if needed
9393 shell : bash
9494 run : |
95- [ ! -f firmware/fujinet-${{ matrix.target-platform }}-${{ env.TAG_NAME }}.zip ] && mv firmware/fujinet-*.zip firmware/fujinet-${{ matrix.target-platform }}-${{ env.TAG_NAME }}.zip
95+ shopt -s nullglob
96+ dest="firmware/fujinet-${{ matrix.target-platform }}-${{ env.TAG_NAME }}.zip"
97+ files=(firmware/fujinet-*.zip)
98+ if [[ ! -f "$dest" && ${#files[@]} -gt 0 ]]; then
99+ mv "${files[0]}" "$dest"
100+ fi
96101
97102 - name : Fetch Tag Info
98103 run : git fetch --tags --force
@@ -144,6 +149,8 @@ jobs:
144149 name : " Push Change Log"
145150 needs : tagged-release
146151 runs-on : ubuntu-latest
152+ env :
153+ TAG_NAME : ${{ github.event.inputs.tag || github.ref_name }}
147154 steps :
148155 - name : Checkout Source
149156 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments