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

Commit

Permalink
bringing back repo checkout and adding a temp dir to avoid name dupli…
Browse files Browse the repository at this point in the history
…cation between binary and repo dir (#1299)

* bringing back repo checkout and adding a temp dir to avoid name duplication between binary and repo dir

* added hash to the action

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* adjusted extrinsic ordering action

* addressed comments from PR

* addressed comments from PR

* variables reoredering

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
  • Loading branch information
EgorPopelyaev and chevdor authored May 30, 2022
1 parent 1fe20e9 commit 1cd6dee
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/extrinsic-ordering-check-from-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,31 @@ jobs:
runs-on: ubuntu-latest
env:
CHAIN: ${{github.event.inputs.chain}}
BIN: node-bin
BIN_PATH: ./tmp/$BIN
BIN_URL: ${{github.event.inputs.binary_url}}
REF_URL: ${{github.event.inputs.reference_url}}

steps:
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: Fetch binary
run: |
echo Creating a temp dir to download and run binary
mkdir -p tmp
echo Fetching $BIN_URL
wget $BIN_URL
chmod a+x polkadot-parachain
./polkadot-parachain --version
wget $BIN_URL -O $BIN_PATH
chmod a+x $BIN_PATH
$BIN_PATH --version
- name: Start local node
run: |
echo Running on $CHAIN
./polkadot-parachain --chain=$CHAIN -- --chain polkadot-local &
$BIN_PATH --chain=$CHAIN -- --chain polkadot-local &
- name: Prepare output
run: |
VERSION=$(./polkadot-parachain --version)
VERSION=$($BIN_PATH --version)
echo "Metadata comparison:" >> output.txt
echo "Date: $(date)" >> output.txt
echo "Reference: $REF_URL" >> output.txt
Expand Down Expand Up @@ -69,7 +75,7 @@ jobs:
- name: Stop our local node
run: |
pkill polkadot-parachain
pkill $BIN
continue-on-error: true

- name: Save output as artifact
Expand Down

0 comments on commit 1cd6dee

Please sign in to comment.