From db495d59b182644f777b10d36e12d07518e2c622 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:52:54 +0100 Subject: [PATCH] Show which build succeeded in release --- .github/workflows/nightly.yml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7cafabf..7f3d823 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -102,9 +102,12 @@ jobs: touch "/tmp/digests/${digest#sha256:}" # linux/amd64 => linux-amd64 - - run: | + - if: always() + run: | platform=${{ matrix.image.platform }} - echo "platform_safe=${platform//\//-}" >> $GITHUB_ENV + platform_safe=${platform//\//-} + echo "platform_safe=$platform_safe" >> $GITHUB_ENV + echo "${{ steps.build.outcome == 'success' && '✅' || '❌' }} ${{ matrix.image.variant }}-$platform_safe" > outcome-${{ matrix.image.variant }}-$platform_safe.txt - name: Upload digest uses: actions/upload-artifact@v4 @@ -114,6 +117,14 @@ jobs: if-no-files-found: error retention-days: 1 + - name: Upload outcome + uses: actions/upload-artifact@v4 + with: + name: outcome-${{ matrix.image.variant }}-${{ env.platform_safe }} + path: outcome-${{ matrix.image.variant }}-${{ env.platform_safe }}.txt + if-no-files-found: error + retention-days: 1 + merge: runs-on: ubuntu-latest needs: @@ -171,17 +182,20 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Create release notes - run: | - cat <> notes.txt - ${{ needs.build.result != 'success' && 'There were one or more build failures' || '' }} - - See more at https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged - EOT - - uses: actions/download-artifact@v4 with: name: snapshot-master + - uses: actions/download-artifact@v4 + with: + path: outcome + pattern: outcome-* + merge-multiple: true + + - name: Create release notes + run: | + echo "https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged" > notes.txt + echo "" >> notes.txt + cat $(find outcome/* | sort) >> notes.txt - id: latest-release env: