Skip to content

Commit

Permalink
Add build commit to release text
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Dec 6, 2024
1 parent fb34ebb commit 926d859
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,30 @@ jobs:
images: ${{ steps.fetch-matrix.outputs.images }}
variants: ${{ steps.fetch-variants.outputs.variants }}
json: ${{ steps.fetch-json.outputs.json }}
revision: ${{ steps.fetch-revision.outputs.revision }}
steps:
- uses: actions/checkout@v4
- name: Download source
run: curl -o ruby.tar.xz https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.tar.xz
- uses: actions/upload-artifact@v4
with:
name: snapshot-master
path: ruby.tar.xz
retention-days: 1

- id: fetch-variants
run: echo "variants=$(./variants.rb)" >> "$GITHUB_OUTPUT"
- id: fetch-json
run: echo "json=$(./nightly-versions.rb)" >> "$GITHUB_OUTPUT"
- id: fetch-date
run: echo "date=$(jq -r .master.date versions.json)" >> $GITHUB_OUTPUT
- id: fetch-revision
run: echo revision=$(tar -xf ruby.tar.xz snapshot-master/revision.h -O | grep -oP '(?<=RUBY_REVISION ")(.*)(?=")') >> $GITHUB_OUTPUT
- run: ./apply-templates.sh

- id: fetch-matrix
run: echo "images=$(./images.rb)" >> "$GITHUB_OUTPUT"

- name: Download source
run: curl -o ruby.tar.xz https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.tar.xz
- uses: actions/upload-artifact@v4
with:
name: snapshot-master
path: ruby.tar.xz
retention-days: 1

build:
needs: set-up-matrix
Expand Down Expand Up @@ -194,9 +198,11 @@ jobs:

- name: Create release notes
run: |
echo "https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged" > notes.txt
echo "Build from [${{ needs.set-up-matrix.outputs.revision }}](https://github.com/ruby/ruby/tree/${{ needs.set-up-matrix.outputs.revision }})" > notes.txt
echo "" >> notes.txt
cat $(find outcome/* | sort) >> notes.txt
echo "" >> notes.txt
echo "https://github.com/docker-ruby-nightly/ruby/pkgs/container/ruby/versions?filters[version_type]=tagged" >> notes.txt
- id: latest-release
env:
Expand Down

0 comments on commit 926d859

Please sign in to comment.