From 823702e1b40470678bd9325e93f4528afb314ee3 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 1 May 2020 15:22:17 +0800 Subject: [PATCH] fix workflow --- .github/workflows/roa.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/roa.yml b/.github/workflows/roa.yml index bdc3886..7579263 100644 --- a/.github/workflows/roa.yml +++ b/.github/workflows/roa.yml @@ -39,12 +39,13 @@ jobs: cd roa_dir [ -n "$SSHPRIVKEY" ] || (echo SSHPRIVKEY is not set; exit 1) ( set -e; + mkdir -p ~/.ssh echo "$SSHPRIVKEY" |base64 -d > ~/.ssh/id_ed25519 chmod 0600 ~/.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 init && git add . 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 ) || (shred ~/.ssh/id_ed25519; exit 1)