Skip to content

Commit 580b601

Browse files
committed
Publish versions table into release body
1 parent 7178bf7 commit 580b601

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,29 @@ jobs:
8989
title: Mithril v${{ github.ref_name }}
9090
files: package/*
9191

92+
- name: Prepare crates versions table
93+
run: |
94+
cat > ./versions-manifest.txt << EOF
95+
96+
## Crates Versions
97+
| Crate | Version |
98+
|---------- |-------------|
99+
EOF
100+
101+
cargo metadata --quiet --no-deps | \
102+
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
103+
>> ./versions-manifest.txt
104+
105+
- name: Update release body with crates versions table
106+
id: update_release
107+
uses: tubone24/[email protected]
108+
env:
109+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110+
TAG_NAME: ${{ github.ref_name }}
111+
with:
112+
is_append_body: true
113+
body_path: ./versions-manifest.txt
114+
92115
build-push-docker:
93116
runs-on: ubuntu-22.04
94117
strategy:

0 commit comments

Comments
 (0)