mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 06:08:01 +00:00
try composite action to avoid dupe use-substrate code (#1177)
* try composite action to avoid dupe use-substrate code * put use-substrate in a folder * required 'shell' prop * re-use use-substrate action across CI * remove unnecessary bit from action readme
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# use-substrate
|
||||
|
||||
This action downloads the substrate binary produced from the `build-substrate` workflow and puts it into the `$PATH`.
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Use substrate binary
|
||||
description: Downloads and configures the substrate binary built with build-substrate
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Download substrate-node binary
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e # v2.28.0
|
||||
with:
|
||||
workflow: build-substrate.yml
|
||||
name: nightly-substrate-binary
|
||||
|
||||
- name: Prepare substrate-node binary
|
||||
shell: bash
|
||||
run: |
|
||||
chmod u+x ./substrate-node
|
||||
./substrate-node --version
|
||||
mkdir -p ~/.local/bin
|
||||
cp ./substrate-node ~/.local/bin
|
||||
Reference in New Issue
Block a user