Skip to content

Commit 63f5084

Browse files
committed
Add network compatiblity table to autogenerated releases
1 parent b69a2f1 commit 63f5084

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.github/workflows/actions/prepare-distribution/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
gpg-secret-key:
1515
description: A GPG secret key to sign the distribution
1616
required: true
17+
compatibility-table:
18+
description: A json in which each key corresponds to a network and each value describes its compatibility
19+
required: true
1720
runs:
1821
using: "composite"
1922
steps:
@@ -58,6 +61,20 @@ runs:
5861
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
5962
>> ./release-notes-addon.txt
6063
64+
- name: Add compatibility table
65+
shell: bash
66+
run: |
67+
cat >> ./release-notes-addon.txt << EOF
68+
69+
## Networks Compatibility :warning:
70+
| Network | Compatible |
71+
|---------- |:-------------:|
72+
EOF
73+
74+
echo "${{ inputs.compatibility-table }}" \
75+
| jq -r 'keys_unsorted[] as $network | "| \($network) | \(.[$network]) |"' \
76+
>> ./release-notes-addon.txt
77+
6178
- name: Add minimum supported libc version
6279
shell: bash
6380
run: |

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ jobs:
380380
version-name: unstable-${{ steps.slug.outputs.sha8 }}
381381
download-url-base: ${{ github.server_url }}/${{ github.repository }}/releases/download/unstable
382382
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
383-
383+
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "✔", "testing-preview": "✔" }'
384+
384385
- name: Update unstable release
385386
uses: marvinpinto/action-automatic-releases@latest
386387
with:

.github/workflows/pre-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
version-name: ${{ github.ref_name }}
6363
download-url-base: ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}
6464
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
65+
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "✔", "testing-preview": "✔" }'
6566

6667
- name: Create pre-release ${{ github.ref_name }}
6768
uses: marvinpinto/action-automatic-releases@latest

0 commit comments

Comments
 (0)