diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2622ccf..146a9d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,13 +16,13 @@ jobs: env: # Or as an environment variable SSH_KEY: ${{ secrets.ssh_key}} run: | - mkdir /root/.ssh \ - python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()" \ - shasum /root/.ssh/id_rsa \ - chmod 600 /root/.ssh/id_rsa \ - stat /root/.ssh/id_rsa \ - touch /root/.ssh/known_hosts \ - chmod 600 /root/.ssh/known_hosts \ + mkdir /root/.ssh + python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()" + shasum /root/.ssh/id_rsa + chmod 600 /root/.ssh/id_rsa + stat /root/.ssh/id_rsa + touch /root/.ssh/known_hosts + chmod 600 /root/.ssh/known_hosts ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null - name: build-and-publish run: cs3apis-build -push-go -push-python -push-js -push-node -git-ssh diff --git a/1.txt b/1.txt index da7b788..16d1f96 100644 --- a/1.txt +++ b/1.txt @@ -16,3 +16,4 @@ 1 1 1 +1