auto-format #20
@ -129,10 +129,7 @@ steps:
|
||||
- chmod 700 -R "$${HOME}/.ssh"
|
||||
|
||||
- echo "$GPG_PRIVKEY" > /tmp/private.key
|
||||
- echo "#!/bin/sh" >> /tmp/import.sh
|
||||
- echo "gpg --import /tmp/private.key" >> /tmp/import.sh
|
||||
- chmod 777 /tmp/import.sh
|
||||
- gpg-agent --daemon /tmp/import.sh
|
||||
- gpg-agent && gpg --import /tmp/private.key" >> /tmp/import.sh
|
||||
|
||||
- git config --local user.name "WANessa"
|
||||
- git config --local user.email "$GIT_EMAIL_ADDRESS"
|
||||
@ -143,9 +140,7 @@ steps:
|
||||
# - git config core.sshCommand '/usr/bin/ssh -v'
|
||||
- git remote add ssh "$DRONE_GIT_SSH_URL"
|
||||
|
||||
- echo "#!/bin/sh" >> /tmp/commit.sh
|
||||
- echo "GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt"" >> /tmp/commit.sh
|
||||
- gpg-agent --daemon /tmp/commit.sh
|
||||
- gpg-agent && "GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt""
|
||||
- git push ssh
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user