Add nightly frontend to nightly builds (#74327)
This commit is contained in:
parent
2464322dc5
commit
6f67ae1dfc
2 changed files with 29 additions and 2 deletions
24
.github/workflows/builder.yml
vendored
24
.github/workflows/builder.yml
vendored
|
@ -102,6 +102,17 @@ jobs:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v3.0.2
|
uses: actions/checkout@v3.0.2
|
||||||
|
|
||||||
|
- name: Download nightly wheels of frontend
|
||||||
|
if: needs.init.outputs.channel == 'dev'
|
||||||
|
uses: dawidd6/action-download-artifact@v2
|
||||||
|
with:
|
||||||
|
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
repo: home-assistant/frontend
|
||||||
|
branch: dev
|
||||||
|
workflow: nightly.yml
|
||||||
|
workflow_conclusion: success
|
||||||
|
name: wheels
|
||||||
|
|
||||||
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
|
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
|
||||||
if: needs.init.outputs.channel == 'dev'
|
if: needs.init.outputs.channel == 'dev'
|
||||||
uses: actions/setup-python@v4.0.0
|
uses: actions/setup-python@v4.0.0
|
||||||
|
@ -116,6 +127,19 @@ jobs:
|
||||||
python3 -m pip install --use-deprecated=legacy-resolver .
|
python3 -m pip install --use-deprecated=legacy-resolver .
|
||||||
version="$(python3 script/version_bump.py nightly)"
|
version="$(python3 script/version_bump.py nightly)"
|
||||||
|
|
||||||
|
if [[ "$(ls home_assistant_frontend*.whl)" =~ ^home_assistant_frontend-(.*)-py3-none-any.whl$ ]]; then
|
||||||
|
echo "Found frontend wheel, setting version to: ${BASH_REMATCH[1]}"
|
||||||
|
frontend_version="${BASH_REMATCH[1]}" yq \
|
||||||
|
--inplace e -o json \
|
||||||
|
'.requirements = ["home-assistant-frontend=="+env(frontend_version)]' \
|
||||||
|
homeassistant/components/frontend/manifest.json
|
||||||
|
|
||||||
|
sed -i "s|home-assistant-frontend==.*|home-assistant-frontend==${BASH_REMATCH[1]}|" \
|
||||||
|
homeassistant/package_constraints.txt
|
||||||
|
|
||||||
|
python -m script.gen_requirements_all
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Write meta info file
|
- name: Write meta info file
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -13,9 +13,12 @@ COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
|
||||||
RUN \
|
RUN \
|
||||||
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
||||||
-r homeassistant/requirements.txt --use-deprecated=legacy-resolver
|
-r homeassistant/requirements.txt --use-deprecated=legacy-resolver
|
||||||
COPY requirements_all.txt homeassistant/
|
COPY requirements_all.txt home_assistant_frontend-* homeassistant/
|
||||||
RUN \
|
RUN \
|
||||||
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
if ls homeassistant/home_assistant_frontend*.whl 1> /dev/null 2>&1; then \
|
||||||
|
pip3 install --no-cache-dir --no-index homeassistant/home_assistant_frontend-*.whl; \
|
||||||
|
fi \
|
||||||
|
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
||||||
-r homeassistant/requirements_all.txt --use-deprecated=legacy-resolver
|
-r homeassistant/requirements_all.txt --use-deprecated=legacy-resolver
|
||||||
|
|
||||||
## Setup Home Assistant Core
|
## Setup Home Assistant Core
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue