Skip to content

Commit f0d5c4e

Browse files
authored
Merge pull request #612 from input-output-hk/ensemble/599-produce-versions-manifest-CI
Produce versions table in Release description
2 parents 7178bf7 + 33908da commit f0d5c4e

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'mithril-explorer/**'
1010
- '.github/workflows/docs.yml'
1111

12+
concurrency:
13+
group: ci-build-test-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
build-ubuntu-X64:
1418
runs-on: ubuntu-22.04

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: # only run on branch push, tag push will be ignored
66
- '**'
77

8+
concurrency:
9+
group: ci-docs-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
cargo-doc:
1014
runs-on: ubuntu-22.04

.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)