From 45985ad4a39c42144bbb5a4bedb5f49a1c9cd901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Thu, 21 Aug 2025 00:22:02 +0200 Subject: [PATCH] Generate list of built-in containers in GH build summary (#4247) 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 --- .github/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 82a4be82c..d176b746e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -352,6 +352,18 @@ jobs: - name: Generate build summary run: | echo "# ${{ matrix.board.id }} build summary" >> $GITHUB_STEP_SUMMARY + echo "## Built-in OS components" >> $GITHUB_STEP_SUMMARY + echo "Release channel: ${{ inputs.hassio_channel }} (${{ needs.prepare.outputs.hassio_channel_option }})" >> $GITHUB_STEP_SUMMARY + echo "| Container | Version |" >> $GITHUB_STEP_SUMMARY + echo "|:-|:-|" >> $GITHUB_STEP_SUMMARY + supervisor_version=$(jq -r ".supervisor" output/build/hassio-*/version.json) + landingpage_version=$(curl -fsSL https://api.github.com/repos/home-assistant/landingpage/releases/latest | jq -r '.tag_name') + echo "| supervisor | [${supervisor_version}](https://github.com/home-assistant/supervisor/releases/tag/${supervisor_version}) |" >> $GITHUB_STEP_SUMMARY + echo "| landingpage | [${landingpage_version}](https://github.com/home-assistant/landingpage/releases/tag/${landingpage_version}) |" >> $GITHUB_STEP_SUMMARY + for plugin in dns audio cli multicast observer; do + version=$(jq -r ".${plugin}" output/build/hassio-*/version.json) + echo "| plugin-${plugin} | [${version}](https://github.com/home-assistant/plugin-${plugin}/releases/tag/${version}) |" >> $GITHUB_STEP_SUMMARY + done echo "## Artifacts" >> $GITHUB_STEP_SUMMARY echo "| File | Size (bytes) | Size (formatted) |" >> $GITHUB_STEP_SUMMARY echo "|:-|:-|:-|" >> $GITHUB_STEP_SUMMARY