mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 21:20:41 +08:00
fix workflow
This commit is contained in:
parent
d76e661e22
commit
823702e1b4
1 changed files with 2 additions and 1 deletions
3
.github/workflows/roa.yml
vendored
3
.github/workflows/roa.yml
vendored
|
@ -39,12 +39,13 @@ jobs:
|
||||||
cd roa_dir
|
cd roa_dir
|
||||||
[ -n "$SSHPRIVKEY" ] || (echo SSHPRIVKEY is not set; exit 1)
|
[ -n "$SSHPRIVKEY" ] || (echo SSHPRIVKEY is not set; exit 1)
|
||||||
( set -e;
|
( set -e;
|
||||||
|
mkdir -p ~/.ssh
|
||||||
echo "$SSHPRIVKEY" |base64 -d > ~/.ssh/id_ed25519
|
echo "$SSHPRIVKEY" |base64 -d > ~/.ssh/id_ed25519
|
||||||
chmod 0600 ~/.ssh/id_ed25519
|
chmod 0600 ~/.ssh/id_ed25519
|
||||||
ssh -o StrictHostKeyChecking=no git@github.com || true
|
ssh -o StrictHostKeyChecking=no git@github.com || true
|
||||||
|
git init && git add .
|
||||||
git config user.name "neonet roa bot"
|
git config user.name "neonet roa bot"
|
||||||
git config user.email "bot@github.com"
|
git config user.email "bot@github.com"
|
||||||
git init && git add .
|
|
||||||
git commit -m "Generated at $(TZ='UTC' date +%Y%m%d-%H%M%S.%N)"
|
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
|
git push --force --quiet "git@github.com:NeoCloud/NeoNetwork-ROA.git" HEAD:master
|
||||||
) || (shred ~/.ssh/id_ed25519; exit 1)
|
) || (shred ~/.ssh/id_ed25519; exit 1)
|
||||||
|
|
Loading…
Reference in a new issue