Skip to content

Do not set config_entry in option flow if HA > 24.11.99 (#4181) #999

Do not set config_entry in option flow if HA > 24.11.99 (#4181)

Do not set config_entry in option flow if HA > 24.11.99 (#4181) #999

Workflow file for this run

name: Publish
on:
release:
types:
- published
push:
branches:
- main
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
release_zip_file:
name: Publish HACS zip file asset
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 📥 Checkout the repository
uses: actions/[email protected]
- name: 🛠️ Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
- name: 🔢 Get version
if: ${{ github.event_name == 'release' }}
id: version
uses: home-assistant/actions/helpers/version@master
- name: 🔢 Set version number
if: ${{ github.event_name == 'release' }}
run: |
sed -i "/MINIMUM_HA_VERSION = /c\MINIMUM_HA_VERSION = \"$(jq .homeassistant -r ${{ github.workspace }}/hacs.json)\"" ${{ github.workspace }}/custom_components/hacs/const.py
python3 ${{ github.workspace }}/scripts/update/manifest.py --version ${{ steps.version.outputs.version }}
- name: ⏬ Download HACS frontend
run: ${{ github.workspace }}/scripts/install/frontend
- name: 📤 Upload zip to action
uses: actions/[email protected]
if: ${{ github.event_name == 'push' }}
with:
name: hacs
path: ${{ github.workspace }}/custom_components/hacs
retention-days: 7
# Pack the HACS dir as a zip and upload to the release
- name: 📦 ZIP HACS Dir
if: ${{ github.event_name == 'release' }}
run: |
cd ${{ github.workspace }}/custom_components/hacs
zip hacs.zip -r ./
- name: 📤 Upload zip to release
uses: softprops/[email protected]
if: ${{ github.event_name == 'release' }}
with:
files: ${{ github.workspace }}/custom_components/hacs/hacs.zip