From e39b965459e5ead955e814da0dda088a612a5f04 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Fri, 6 Sep 2024 14:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e293db2..ee9117e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -51,7 +51,7 @@ jobs: - name: Extract version number id: extract_version_number run: | - python -c "import re; content = open('res/info.txt', 'r').read(); match = re.search(r'StringStruct\\(\'ProductVersion\', \'(.*?)\'\\)', content); if match:\n\tversion_number = match.group(1);\n\tprint(f'::set-output name=version_number::{version_number}')" + python -c "import re; content = open('res/info.txt', 'r').read(); match = re.search(r'StringStruct\\(\'ProductVersion\', \'(.*?)\'\\)', content); if match:\n\tversion_number = match.group(1);\n\tprint(f'::set-output name=version_number::{{version_number}}')" - name: Upload Artifact uses: actions/upload-artifact@v4 with: @@ -76,11 +76,11 @@ jobs: - name: Extract version number id: extract_version_number run: | - python -c "import re; content = open('res/info.txt', 'r').read(); match = re.search(r'StringStruct\\(\'ProductVersion\', \'(.*?)\'\\)', content); if match: version_number = match.group(1); print(f'::set-output name=version_number::{version_number}')" + python -c "import re; content = open('res/info.txt', 'r').read(); match = re.search(r'StringStruct\\(\'ProductVersion\', \'(.*?)\'\\)', content); if match:\n\tversion_number = match.group(1);\n\tprint(f'::set-output name=version_number::{{version_number}}')" - name: Read release content id: read_release_content run: | - python -c "with open('更新说明.txt', 'r') as f: release_content = f.read(); print(f'::set-output name=release_content::{release_content}')" + python -c "with open('更新说明.txt', 'r') as f: release_content = f.read(); print(f'::set-output name=release_content::{{release_content}}')" - name: Download artifacts uses: actions/download-artifact@v4 with: