Skip to content

Commit

Permalink
Fix loading of existing profiles (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Jun 16, 2024
1 parent 5783229 commit 4413fc7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,18 @@ jobs:
$folderName = "d4lf_v" + $version
Compress-Archive -Path $folderName -DestinationPath "$folderName.zip"
- name: Check if beta
shell: powershell
run: |
if ("${{ github.ref }}".Contains("beta")) {
echo "IS_BETA=true" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
} else {
echo "IS_BETA=false" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: d4lf_v*.zip
generate_release_notes: true
prerelease: ${{ env.IS_BETA == 'true' }}
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.6.0beta1"
__version__ = "5.6.0beta2"
4 changes: 2 additions & 2 deletions src/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def check_chest_tabs_index(cls, v: str) -> list[int]:
@field_validator("profiles", mode="before")
def check_profiles_is_list(cls, v: str) -> list[str]:
if isinstance(v, str):
v = v.split(", ")
v = v.split(",")
elif not isinstance(v, list):
raise ValueError("must be a list or a string")
return v
return [v.strip() for v in v]

@field_validator("language")
def language_must_exist(cls, v: str) -> str:
Expand Down

0 comments on commit 4413fc7

Please sign in to comment.