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 357a12e98a - Show all commits

View File

@ -120,7 +120,7 @@ steps:
- '[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1' - '[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1'
- apk update - apk update
- apk add openssh gpg gpg-agent util-linux - apk add openssh gpg gpg-agent
- mkdir -p "$${HOME}/.ssh" - mkdir -p "$${HOME}/.ssh"
- echo "$SSH_PRIVATE_KEY" > "$${HOME}/.ssh/git" - echo "$SSH_PRIVATE_KEY" > "$${HOME}/.ssh/git"
@ -137,6 +137,7 @@ steps:
- gpg --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
- echo "#!/bin/sh" >> /tmp/gpg.sh - echo "#!/bin/sh" >> /tmp/gpg.sh
- echo "gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' $@" - echo "gpg --batch --pinentry-mode loopback --passphrase '$GPG_PASSPHRASE' $@"
- echo "Hai"
- chmod 777 /tmp/gpg.sh - chmod 777 /tmp/gpg.sh
- git config --local user.name "WANessa" - git config --local user.name "WANessa"
@ -148,7 +149,6 @@ steps:
# - git config core.sshCommand '/usr/bin/ssh -v' # - git config core.sshCommand '/usr/bin/ssh -v'
- git remote add ssh "$DRONE_GIT_SSH_URL" - git remote add ssh "$DRONE_GIT_SSH_URL"
- whereis gpg
- GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -S -a -m "rustfmt" || exit 3 - GIT_COMMITTER_NAME="WANessa" GIT_COMMITTER_EMAIL="$GIT_EMAIL_ADDRESS" git commit --author "$DRONE_COMMIT_AUTHOR_NAME <$DRONE_COMMIT_AUTHOR_EMAIL>" -S -a -m "rustfmt" || exit 3
- git push ssh - git push ssh