mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 18:40:41 +08:00
19 lines
549 B
Bash
19 lines
549 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -xeuo pipefail
|
||
|
IFS=$'\n\t'
|
||
|
|
||
|
pushed roa_dir
|
||
|
if [ -n "$SSHPRIVKEY" ]; then
|
||
|
echo SSHPRIVKEY is not set
|
||
|
exit 1
|
||
|
fi
|
||
|
mkdir -p "$HOME/.ssh"
|
||
|
echo "$SSHPRIVKEY" | base64 -d >"$HOME/.ssh/id_ed25519"
|
||
|
chmod 0600 "$HOME/.ssh/id_ed25519"
|
||
|
ssh -o StrictHostKeyChecking=no git@github.com || true
|
||
|
git init && git add .
|
||
|
git config user.name "neonet roa bot"
|
||
|
git config user.email "bot@github.com"
|
||
|
git commit -m "Generated at $(TZ='UTC' date +%Y%m%d-%H%M%S.%N)"
|
||
|
git push --force --quiet "git@github.com:NeoCloud/NeoNetwork-ROA.git" HEAD:master
|