From 0b01b943165d309c36f373fcf45292bfddefb6e6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 9 May 2023 09:22:35 +0100 Subject: [PATCH] Print a summary on nightly builds to make versions easier to trace (#947) --- .github/workflows/build_prepare.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build_prepare.yaml b/.github/workflows/build_prepare.yaml index 2d74ee2..057b6c7 100644 --- a/.github/workflows/build_prepare.yaml +++ b/.github/workflows/build_prepare.yaml @@ -114,6 +114,26 @@ jobs: BODY: ${{ steps.release.outputs.body }} PUBLISHED_AT: ${{ steps.release.outputs.published_at }} + - name: "[Nightly] Write summary" + if: inputs.nightly + run: | + WEBAPP_VERSION=$(cat webapp/version) + WEB_VERSION=${WEBAPP_VERSION:0:12} + REACT_VERSION=${WEBAPP_VERSION:19:12} + JS_VERSION=${WEBAPP_VERSION:35:12} + + echo "### Nightly build" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "| Component | Version |" >> $GITHUB_STEP_SUMMARY + echo "| ----------- | ------- |" >> $GITHUB_STEP_SUMMARY + echo "| macOS | ${{ steps.versions.outputs.macos }} |" >> $GITHUB_STEP_SUMMARY + echo "| Linux | ${{ steps.versions.outputs.linux }} |" >> $GITHUB_STEP_SUMMARY + echo "| Windows x64 | ${{ steps.versions.outputs.win_x64 }} |" >> $GITHUB_STEP_SUMMARY + echo "| Windows x86 | ${{ steps.versions.outputs.win_x86 }} |" >> $GITHUB_STEP_SUMMARY + echo "| Element Web | [$WEB_VERSION](https://github.com/vector-im/element-web/commit/$WEB_VERSION) |" >> $GITHUB_STEP_SUMMARY + echo "| React SDK | [$REACT_VERSION](https://github.com/matrix-org/matrix-react-sdk/commit/$REACT_VERSION) |" >> $GITHUB_STEP_SUMMARY + echo "| JS SDK | [$JS_VERSION](https://github.com/matrix-org/matrix-js-sdk/commit/$JS_VERSION) |" >> $GITHUB_STEP_SUMMARY + - uses: actions/upload-artifact@v3 with: name: webapp