Skip to content

Commit

Permalink
Block 2023.12 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 6, 2023
1 parent a6c8a4c commit e7607b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
- { current: "2023.1.1", target: "2023.1.1b4", result: 0 }
- { current: "2022.1.1", target: "2023.1.1", result: 1 }
- { current: "2022.1.1", target: "2023.1.3", result: 1 }
- { current: "2023.12.0", target: "2023.1.3", result: 1 }

steps:
- name: Checkout the repository
Expand Down
7 changes: 6 additions & 1 deletion get
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@ if [ -n "$haPath" ]; then
targetMonth=$(echo "${targetVersion}" | cut -d "." -f 2)
currentMonth=$(echo "${currentVersion}" | cut -d "." -f 2)

if [ "${currentYear}.${currentMonth}" == "2023.12" ]; then
rm -R "$haPath/custom_components/hacs"
error "HACS will currently not work on ${currentYear}.${currentMonth} versions of Home Assistant, latest known working version is 2023.11.3"
fi

if [ "${currentMonth}" -lt "${targetMonth}" ]; then
rm -R "$haPath/custom_components/hacs"
rm -R "$haPath/custom_components/hacs"
error "Version ${currentVersion} is not new enough, needs at least ${targetVersion}"
fi

Expand Down

0 comments on commit e7607b9

Please sign in to comment.