mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
11 lines
348 B
Bash
Executable File
11 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
shouldDeploy=$(curl -s https://api.github.com/repos/ethereum-lists/chains/commits/master | jq -r "((now - (.commit.author.date | fromdateiso8601) ) / (60*60*24) | trunc)")
|
|
|
|
if [ $shouldDeploy -eq 0 ]
|
|
then
|
|
echo "Deploying..."
|
|
curl -X POST -d '{}' https://api.netlify.com/build_hooks/${BUILD_HOOK}
|
|
else
|
|
echo "No deploy needed"
|
|
fi
|