From d40459c722da0c675505bb6adf5d59c4da88b591 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 14 Oct 2022 00:20:31 +0000 Subject: [PATCH 1/2] Fix drone pushing commits with bad author Signed-off-by: Yarden Shoham --- .drone.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1e21c43f39535..18b947626f00b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -619,13 +619,15 @@ steps: image: appleboy/drone-git-push pull: always settings: - author_email: "teabot@gitea.io" - author_name: GiteaBot + author_email: &author_email "teabot@gitea.io" + author_name: &author_name GiteaBot branch: main commit: true commit_message: "[skip ci] Updated translations via Crowdin" remote: "git@github.com:go-gitea/gitea.git" environment: + DRONE_COMMIT_AUTHOR_EMAIL: *author_email + DRONE_COMMIT_AUTHOR: *author_name GIT_PUSH_SSH_KEY: from_secret: git_push_ssh_key @@ -669,13 +671,15 @@ steps: image: appleboy/drone-git-push pull: always settings: - author_email: "teabot@gitea.io" - author_name: GiteaBot + author_email: *author_email + author_name: *author_name branch: main commit: true - commit_message: "[skip ci] Updated licenses and gitignores " + commit_message: "[skip ci] Updated licenses and gitignores" remote: "git@github.com:go-gitea/gitea.git" environment: + DRONE_COMMIT_AUTHOR_EMAIL: *author_email + DRONE_COMMIT_AUTHOR: *author_name GIT_PUSH_SSH_KEY: from_secret: git_push_ssh_key From 6feaf45d1ddfe183fbd97903896242d37553b971 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 14 Oct 2022 09:02:20 +0000 Subject: [PATCH 2/2] Hardcode author Signed-off-by: Yarden Shoham --- .drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 18b947626f00b..8a73e84a0005f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -619,15 +619,15 @@ steps: image: appleboy/drone-git-push pull: always settings: - author_email: &author_email "teabot@gitea.io" - author_name: &author_name GiteaBot + author_email: "teabot@gitea.io" + author_name: GiteaBot branch: main commit: true commit_message: "[skip ci] Updated translations via Crowdin" remote: "git@github.com:go-gitea/gitea.git" environment: - DRONE_COMMIT_AUTHOR_EMAIL: *author_email - DRONE_COMMIT_AUTHOR: *author_name + DRONE_COMMIT_AUTHOR_EMAIL: "teabot@gitea.io" + DRONE_COMMIT_AUTHOR: GiteaBot GIT_PUSH_SSH_KEY: from_secret: git_push_ssh_key @@ -671,15 +671,15 @@ steps: image: appleboy/drone-git-push pull: always settings: - author_email: *author_email - author_name: *author_name + author_email: "teabot@gitea.io" + author_name: "GiteaBot" branch: main commit: true commit_message: "[skip ci] Updated licenses and gitignores" remote: "git@github.com:go-gitea/gitea.git" environment: - DRONE_COMMIT_AUTHOR_EMAIL: *author_email - DRONE_COMMIT_AUTHOR: *author_name + DRONE_COMMIT_AUTHOR_EMAIL: "teabot@gitea.io" + DRONE_COMMIT_AUTHOR: "GiteaBot" GIT_PUSH_SSH_KEY: from_secret: git_push_ssh_key