Skip to content

Commit

Permalink
update yaml to continue execution if command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hemz10 committed Nov 28, 2023
1 parent 22f3119 commit 5487f33
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
echo "Processing para chain: $para_chain, relay chain: $relay_chain"
# Call Python script with para_chain and relay_chain as arguments
python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "local"
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot || true
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
echo "Processing para chain: $para_chain, relay chain: $relay_chain"
# Call Python script with para_chain and relay_chain as arguments
python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "mainnet"
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot || true
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
echo "Processing para chain: $para_chain, relay chain: $relay_chain"
# Call Python script with para_chain and relay_chain as arguments
python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "testnet"
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot
kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot || true
# Check if Kurtosis command failed
if [ $? -ne 0 ]; then
echo "Chain $para_chain failed."
else
echo "Chain $para_chain succeeded."
fi
done < ./testdata/chain_value.csv
Expand Down

0 comments on commit 5487f33

Please sign in to comment.