Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
slurp collectives digest to make appear in release notes (#1473)
Browse files Browse the repository at this point in the history
* add slurp

* Slurp better :)

* Bring some order

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Co-authored-by: Wilfried Kopp <wilfried@parity.io>
  • Loading branch information
3 people authored Aug 4, 2022
1 parent 95f4d86 commit 8d104b6
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions scripts/ci/changelog/bin/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ else
logger.debug("Re-using:#{substrate_data}")
end

POLKADOT_COLLECTIVES_DIGEST = ENV['SHELL_DIGEST'] || 'digests/polkadot-collectives-srtool-digest.json'
SHELL_DIGEST = ENV['SHELL_DIGEST'] || 'digests/shell-srtool-digest.json'
WESTMINT_DIGEST = ENV['WESTMINT_DIGEST'] || 'digests/westmint-srtool-digest.json'
STATEMINE_DIGEST = ENV['STATEMINE_DIGEST'] || 'digests/statemine-srtool-digest.json'
Expand Down Expand Up @@ -112,24 +113,31 @@ else
--slurpfile srtool_statemint %s \
--slurpfile srtool_rococo_parachain %s \
--slurpfile srtool_contracts_rococo %s \
--slurpfile srtool_polkadot_collectives %s \
-n \'{
cumulus: $cumulus[0],
substrate: $substrate[0],
polkadot: $polkadot[0],
cumulus: $cumulus[0],
substrate: $substrate[0],
polkadot: $polkadot[0],
srtool: [
{ name: "rococo", data: $srtool_rococo_parachain[0] },
{ name: "shell", data: $srtool_shell[0] },
{ name: "westmint", data: $srtool_westmint[0] },
{ name: "statemint", data: $srtool_statemint[0] },
{ name: "statemine", data: $srtool_statemine[0] },
{ name: "contracts", data: $srtool_contracts_rococo[0] }
] }\' > context.json', cumulus_data, substrate_data, polkadot_data,
SHELL_DIGEST,
WESTMINT_DIGEST,
STATEMINE_DIGEST,
STATEMINT_DIGEST,
ROCOCO_PARA_DIGEST,
CANVAS_KUSAMA_DIGEST)
{ name: "shell", data: $srtool_shell[0] },
{ name: "westmint", data: $srtool_westmint[0] },
{ name: "statemine", data: $srtool_statemine[0] },
{ name: "statemint", data: $srtool_statemint[0] },
{ name: "rococo", data: $srtool_rococo_parachain[0] },
{ name: "contracts", data: $srtool_contracts_rococo[0] }
{ name: "polkadot-collectives", data: $srtool_polkadot_collectives[0] },
] }\' > context.json',
cumulus_data,
substrate_data,
polkadot_data,
SHELL_DIGEST,
WESTMINT_DIGEST,
STATEMINE_DIGEST,
STATEMINT_DIGEST,
ROCOCO_PARA_DIGEST,
CANVAS_KUSAMA_DIGEST,
POLKADOT_COLLECTIVES_DIGEST
)
end
system(cmd)

Expand Down

0 comments on commit 8d104b6

Please sign in to comment.