mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-26 01:49:23 +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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
||||||
repository: NeoCloud/NeoNetwork-ROA
|
repository: NeoCloud/NeoNetwork-ROA
|
||||||
path: generated
|
path: generated
|
||||||
|
|
||||||
|
@ -31,5 +31,3 @@ jobs:
|
||||||
- run: .scripts/generate-roa.sh
|
- run: .scripts/generate-roa.sh
|
||||||
|
|
||||||
- run: .scripts/push-to-roa.sh
|
- run: .scripts/push-to-roa.sh
|
||||||
env:
|
|
||||||
SSHPRIVKEY: ${{ secrets.KEY }}
|
|
||||||
|
|
|
@ -2,20 +2,10 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
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
|
set -x
|
||||||
|
|
||||||
cd generated || exit 1
|
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.name "NeoCloud ROA bot"
|
||||||
git config user.email "support@neocloud.tw"
|
git config user.email "support@neocloud.tw"
|
||||||
git add .
|
git add .
|
||||||
|
|
Loading…
Reference in a new issue