Skip to content

Commit 09a4545

Browse files
committed
Generate list of built-in containers in GH build summary
Add list of hassio components from version.json that are built-in in the data partition to the GH step summary. For landingpage, get the latest stable release at the time of the build, as it's what should be published as homeassistant:landingpage by that time. Closes #4242
1 parent effe4d3 commit 09a4545

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ jobs:
338338
- name: Generate build summary
339339
run: |
340340
echo "# ${{ matrix.board.id }} build summary" >> $GITHUB_STEP_SUMMARY
341+
echo "## Built-in OS components" >> $GITHUB_STEP_SUMMARY
342+
echo "Release channel: ${{ inputs.hassio_channel }} (${{ needs.prepare.outputs.hassio_channel_option }})" >> $GITHUB_STEP_SUMMARY
343+
echo "| Container | Version |" >> $GITHUB_STEP_SUMMARY
344+
echo "|:-|:-|" >> $GITHUB_STEP_SUMMARY
345+
supervisor_version=$(jq -r ".supervisor" output/build/hassio-*/version.json)
346+
landingpage_version=$(curl -fsSL https://api.github.com/repos/home-assistant/landingpage/releases/latest | jq -r '.tag_name')
347+
echo "| supervisor | [${supervisor_version}](https://github.com/home-assistant/supervisor/releases/tag/${supervisor_version}) |" >> $GITHUB_STEP_SUMMARY
348+
echo "| landingpage | [${landingpage_version}](https://github.com/home-assistant/landingpage/releases/tag/${landingpage_version}) |" >> $GITHUB_STEP_SUMMARY
349+
for plugin in dns audio cli multicast observer; do
350+
version=$(jq -r ".${plugin}" output/build/hassio-*/version.json)
351+
echo "| plugin-${plugin} | [${version}](https://github.com/home-assistant/plugin-${plugin}/releases/tag/${version}) |" >> $GITHUB_STEP_SUMMARY
352+
done
341353
echo "## Artifacts" >> $GITHUB_STEP_SUMMARY
342354
echo "| File | Size (bytes) | Size (formatted) |" >> $GITHUB_STEP_SUMMARY
343355
echo "|:-|:-|:-|" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)