forked from yearn/yearn-workflows
-
Notifications
You must be signed in to change notification settings - Fork 1
/
entrypoint.sh
executable file
·37 lines (32 loc) · 1017 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
ln -s /root/.solcx /github/home/.solcx
ln -s /root/.vvm /github/home/.vvm
pip install -r requirements-dev.txt
/root/.local/bin/brownie
cp network-config.yaml ~/.brownie/network-config.yaml
/root/.local/bin/brownie networks list true
brownie compile
python3 -m multisig_ci brownie run $1 $2 --network $3-main-fork 1>output.txt 2>error.txt
EXIT_CODE=$?
echo "::set-output name=brownie-exit-code::$EXIT_CODE"
echo "::group:: Output"
cat output.txt
echo "::endgroup::"
echo "::group:: Error"
cat error.txt
echo "::endgroup::"
echo "::set-output name=nonce::$NONCE"
echo "::set-output name=safe_link::$SAFE_LINK"
echo "Action send is $GITHUB_ACTION_SEND"
echo "exit code is $EXIT_CODE"
if [[ "$GITHUB_ACTION_SEND" == "true" && "$NONCE" == "" ]]
then
echo "::set-output name=error-reason::'failed to find nonce'"
exit 1
elif [[ "$GITHUB_ACTION_SEND" == "true" && "$SAFE_LINK" == "" ]]
then
echo "::set-output name=error-reason::'failed to find safe link'"
exit 1
else
exit $EXIT_CODE
fi