File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,15 @@ jobs:
129129 - name : Create version file
130130 shell : bash
131131 run : |
132- echo "VERSION = '${{ needs.semantic-release.outputs.new-release-version }}'" > src/version.py
132+ cat > src/version.py << 'EOF'
133+ """Version information for Glimpse."""
134+
135+ VERSION = "${{ needs.semantic-release.outputs.new-release-version }}"
136+
137+ def get_version():
138+ """Get the current version string."""
139+ return VERSION
140+ EOF
133141
134142 - name : Build executable (Linux with virtual display)
135143 if : matrix.os == 'ubuntu-latest'
@@ -212,7 +220,15 @@ jobs:
212220
213221 - name : Create version file for semantic-release
214222 run : |
215- echo "VERSION = '${{ needs.semantic-release.outputs.new-release-version }}'" > src/version.py
223+ cat > src/version.py << 'EOF'
224+ """Version information for Glimpse."""
225+
226+ VERSION = "${{ needs.semantic-release.outputs.new-release-version }}"
227+
228+ def get_version():
229+ """Get the current version string."""
230+ return VERSION
231+ EOF
216232
217233 - name : Run semantic-release (full release)
218234 run : semantic-release
You can’t perform that action at this time.
0 commit comments