Skip to content

Commit

Permalink
Show which build succeeded in release
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Nov 18, 2024
1 parent 1150703 commit db495d5
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -171,17 +182,20 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Create release notes
run: |
cat <<EOT >> 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:
Expand Down

0 comments on commit db495d5

Please sign in to comment.