forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nightly frontend to nightly builds (home-assistant#74327)
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,17 @@ jobs: | |
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- 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 }} | ||
if: needs.init.outputs.channel == 'dev' | ||
uses: actions/[email protected] | ||
|
@@ -116,6 +127,19 @@ jobs: | |
python3 -m pip install --use-deprecated=legacy-resolver . | ||
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 | ||
shell: bash | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters