diff --git a/.github/workflows/push_lib_widget.yml b/.github/workflows/push_lib_widget.yml index 4c7b4d6..01c7303 100644 --- a/.github/workflows/push_lib_widget.yml +++ b/.github/workflows/push_lib_widget.yml @@ -42,7 +42,7 @@ jobs: - name: 修改本地版本号 run: | # Update the versionCode in the build file - sed -i 's/\([0-9]\+\)$/${{ steps.generate_version.outputs.new_version }}/' lib/widget/gradle.properties + sed -i "s/VERSION_NAME=[0-9]+\.[0-9]+\.[0-9]+/VERSION_NAME=${{ steps.generate_version.outputs.new_version }}/" lib/widget/gradle.properties - name: 打印本地版本号 run: | # Update the versionCode in the build file