From 438a94e29835e2f23d9ac7e2134375799baec5af Mon Sep 17 00:00:00 2001 From: Infinite Date: Thu, 17 Aug 2023 10:51:45 +0800 Subject: [PATCH] Update main.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 取消重命名拼接日期 --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df9804fed..249f932ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,16 +59,16 @@ jobs: id: version run: echo "version=${GITHUB_REF#refs/tags/v}" >>$GITHUB_OUTPUT - - name: 获取当前日期 - id: date - run: echo "date=$(date +'%m%d')" >>$GITHUB_OUTPUT + # - name: 获取当前日期 + # id: date + # run: echo "date=$(date +'%m%d')" >>$GITHUB_OUTPUT - name: 重命名应用 Pili-arm64-v8a-*.*.*.0101.apk run: | - DATE=${{ steps.date.outputs.date }} + # DATE=${{ steps.date.outputs.date }} for file in build/app/outputs/flutter-apk/app-*-release.apk; do if [[ $file =~ app-(.*)-release.apk ]]; then - new_file_name="build/app/outputs/flutter-apk/Pili-${BASH_REMATCH[1]}-${{ steps.version.outputs.version }}($DATE).apk" + new_file_name="build/app/outputs/flutter-apk/Pili-${BASH_REMATCH[1]}-${{ steps.version.outputs.version }}.apk" mv "$file" "$new_file_name" fi done