diff --git a/.github/workflows/my_ipq60xx.yml b/.github/workflows/my_ipq60xx.yml index 4341538f8..e7f32b24a 100644 --- a/.github/workflows/my_ipq60xx.yml +++ b/.github/workflows/my_ipq60xx.yml @@ -153,13 +153,16 @@ jobs: name: ${{ env.SOURCE_REPO }}-firmware-${{ env.DEVICE_TARGET }}-${{ env.DEVICE_SUBTARGET }}-${{ env.FILE_DATE }} path: ${{ env.FIRMWARE_PATH }} + - name: Set current time + run: echo "CURRENT_TIME=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV + - name: Upload Firmware To Release(发布固件) if: steps.compile.outputs.status == 'success' && env.FIRMWARE_RELEASE == 'true' uses: ncipollo/release-action@v1 with: name: R${{ env.DATE }} for ${{ env.FIRMWARE_TAG }} allowUpdates: true - tag: ${{ env.FIRMWARE_TAG }}-$(date +'%Y%m%d-%H%M%S') + tag: ${{ env.FIRMWARE_TAG }}-${{ env.CURRENT_TIME }} token: ${{ secrets.GITHUB_TOKEN }} artifacts: ${{ env.FIRMWARE_PATH }}/* body: |