Skip to content

Commit

Permalink
changing the check version and add some checks
Browse files Browse the repository at this point in the history
  • Loading branch information
elkanamol committed Sep 1, 2024
1 parent 3d4b301 commit b30fdb4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/Build_Executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ jobs:
- name: Get version
id: get_version
run: |
$version = (Get-Content .\sierra_status\__version__.py | Select-String -Pattern "__version__\s*=\s*['\"](.*)['\""]").Matches.Groups[1].Value
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
$version = Get-Content .\sierra_status\__version__.py | ForEach-Object { if ($_ -match "__version__\s*=\s*['\"](.+)['\"]") { $matches[1] } }
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
- name: Print __version__.py contents
run: |
Get-Content .\sierra_status\__version__.py
- name: Check working directory
run: |
Get-Location
Get-ChildItem
- name: Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit b30fdb4

Please sign in to comment.