mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-14 12:42:24 +08:00
Regular update: 2020-07-26T11:30:54Z
This commit is contained in:
parent
bc05c825d6
commit
4573aeab73
2 changed files with 1 additions and 13 deletions
4
.github/workflows/roa.yml
vendored
4
.github/workflows/roa.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
||||
repository: NeoCloud/NeoNetwork-ROA
|
||||
path: generated
|
||||
|
||||
|
@ -31,5 +31,3 @@ jobs:
|
|||
- run: .scripts/generate-roa.sh
|
||||
|
||||
- run: .scripts/push-to-roa.sh
|
||||
env:
|
||||
SSHPRIVKEY: ${{ secrets.KEY }}
|
||||
|
|
|
@ -2,20 +2,10 @@
|
|||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
if [ -z "$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"
|
||||
|
||||
set -x
|
||||
|
||||
cd generated || exit 1
|
||||
|
||||
git remote set-url origin git@github.com:NeoCloud/NeoNetwork-ROA.git
|
||||
git config user.name "NeoCloud ROA bot"
|
||||
git config user.email "support@neocloud.tw"
|
||||
git add .
|
||||
|
|
Loading…
Reference in a new issue