auto-format #20

Merged
leon merged 143 commits from auto-format into main 2024-02-14 01:18:02 +01:00
Showing only changes of commit bcc8a8273d - Show all commits

View File

@ -132,21 +132,19 @@ steps:
- echo "$GITEA_ECDSA_SIG" >> "$${HOME}/.ssh/known_hosts"
- chmod 700 -R "$${HOME}/.ssh"
- echo "'$GIT_EMAIL_ADDRESS'"
- gpg --version
- gpg-agent --version
- gpg-agent --daemon
- echo "$GPG_PRIVKEY" > /tmp/private.key
- gpg-agent --daemon && gpg2 --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2
- gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' --import /tmp/private.key >> /tmp/import.sh || exit 2
- git config --local user.name "WANessa"
- git config --local user.email "$GIT_EMAIL_ADDRESS"
- git config --local user.signingkey "$GPG_PUBKEY_ID"
- git config --local gpg.program "/usr/bin/gpg2 --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE'"
- git config --local gpg.program "/usr/bin/gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE'"
# Uncomment below line for ssh debugging
# - git config core.sshCommand '/usr/bin/ssh -v'
- git remote add ssh "$DRONE_GIT_SSH_URL"
- gpg-agent --daemon && "GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt"" || exit 3
- GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -Sam "rustfmt" || exit 3
- git push ssh
environment: