Fix missing quotes around variables; set up Python for AppImage too
This commit is contained in:
1 parent
b754f5e4a6
commit
0b6deeb951
1 file changed
+9
-2
@@ -30,10 +30,11 @@ jobs:
|
|||||||
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
|
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
|
||||||
Out-File version.py
|
Out-File version.py
|
||||||
|
|
||||||
|
# Ensure Python version
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: $PYTHON_VERSION
|
python-version: "$PYTHON_VERSION"
|
||||||
|
|
||||||
- name: Set up Python virtual environment
|
- name: Set up Python virtual environment
|
||||||
run: |
|
run: |
|
||||||
@@ -97,7 +98,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: $PYTHON_VERSION
|
python-version: "$PYTHON_VERSION"
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -167,6 +168,12 @@ jobs:
|
|||||||
echo "app_version=$(python3 -c 'from version import __version__ as v; print(v)')" >> "${GITHUB_OUTPUT}"
|
echo "app_version=$(python3 -c 'from version import __version__ as v; print(v)')" >> "${GITHUB_OUTPUT}"
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> "${GITHUB_OUTPUT}"
|
echo "sha_short=$(git rev-parse --short HEAD)" >> "${GITHUB_OUTPUT}"
|
||||||
|
|
||||||
|
# Ensure Python version
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "$PYTHON_VERSION"
|
||||||
|
|
||||||
- name: Append git revision to project version
|
- name: Append git revision to project version
|
||||||
run: |
|
run: |
|
||||||
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{ steps.vars.outputs.sha_short }}/" version.py
|
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{ steps.vars.outputs.sha_short }}/" version.py
|
||||||
|
|||||||
Reference in new issue
Block a user