修复部分语法错误
This commit is contained in:
6
.github/workflows/python-app.yml
vendored
6
.github/workflows/python-app.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Extract version number
|
- name: Extract version number
|
||||||
id: extract_version_number
|
id: extract_version_number
|
||||||
run: |
|
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
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -76,11 +76,11 @@ jobs:
|
|||||||
- name: Extract version number
|
- name: Extract version number
|
||||||
id: extract_version_number
|
id: extract_version_number
|
||||||
run: |
|
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
|
- name: Read release content
|
||||||
id: read_release_content
|
id: read_release_content
|
||||||
run: |
|
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
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user