Skip to content

Commit db495d5

Browse files
committed
Show which build succeeded in release
1 parent 1150703 commit db495d5

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

.github/workflows/nightly.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ jobs:
102102
touch "/tmp/digests/${digest#sha256:}"
103103
104104
# linux/amd64 => linux-amd64
105-
- run: |
105+
- if: always()
106+
run: |
106107
platform=${{ matrix.image.platform }}
107-
echo "platform_safe=${platform//\//-}" >> $GITHUB_ENV
108+
platform_safe=${platform//\//-}
109+
echo "platform_safe=$platform_safe" >> $GITHUB_ENV
110+
echo "${{ steps.build.outcome == 'success' && '✅' || '❌' }} ${{ matrix.image.variant }}-$platform_safe" > outcome-${{ matrix.image.variant }}-$platform_safe.txt
108111
109112
- name: Upload digest
110113
uses: actions/upload-artifact@v4
@@ -114,6 +117,14 @@ jobs:
114117
if-no-files-found: error
115118
retention-days: 1
116119

120+
- name: Upload outcome
121+
uses: actions/upload-artifact@v4
122+
with:
123+
name: outcome-${{ matrix.image.variant }}-${{ env.platform_safe }}
124+
path: outcome-${{ matrix.image.variant }}-${{ env.platform_safe }}.txt
125+
if-no-files-found: error
126+
retention-days: 1
127+
117128
merge:
118129
runs-on: ubuntu-latest
119130
needs:
@@ -171,17 +182,20 @@ jobs:
171182

172183
steps:
173184
- uses: actions/checkout@v4
174-
- name: Create release notes
175-
run: |
176-
cat <<EOT >> notes.txt
177-
${{ needs.build.result != 'success' && 'There were one or more build failures' || '' }}
178-
179-
See more at https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged
180-
EOT
181-
182185
- uses: actions/download-artifact@v4
183186
with:
184187
name: snapshot-master
188+
- uses: actions/download-artifact@v4
189+
with:
190+
path: outcome
191+
pattern: outcome-*
192+
merge-multiple: true
193+
194+
- name: Create release notes
195+
run: |
196+
echo "https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged" > notes.txt
197+
echo "" >> notes.txt
198+
cat $(find outcome/* | sort) >> notes.txt
185199
186200
- id: latest-release
187201
env:

0 commit comments

Comments
 (0)