Skip to content

Commit

Permalink
fix: Update paths in test_build_windows.yaml to reference src/version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckswordsman committed Nov 10, 2024
1 parent 342b7be commit 166b91f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_build_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- name: Set test version
run: |
$timestamp = [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId((Get-Date), 'Central European Standard Time').ToString("yyyyMMdd-HHmm")
# Read version from version.py and append timestamp
$version = (Get-Content version.py | Select-String 'VERSION = "(.*)"').Matches.Groups[1].Value
# Read version from src/version.py and append timestamp
$version = (Get-Content src/version.py | Select-String 'VERSION = "(.*)"').Matches.Groups[1].Value
$testVersion = "$version-test-$timestamp"
echo "VERSION=$testVersion" >> $env:GITHUB_ENV
# Update version.py with test version
(Get-Content version.py) -replace 'VERSION = ".*"', "VERSION = `"$testVersion`"" | Set-Content version.py
# Update src/version.py with test version
(Get-Content src/version.py) -replace 'VERSION = ".*"', "VERSION = `"$testVersion`"" | Set-Content src/version.py
- name: Build executable
run: |
pyinstaller --clean disco_beacon.spec
Expand Down

0 comments on commit 166b91f

Please sign in to comment.