blazing-fast-gh-pages-deploy icon indicating copy to clipboard operation
blazing-fast-gh-pages-deploy copied to clipboard

Wrong commit author when triggered by cron

Open nin-jin opened this issue 3 years ago • 2 comments

Latest commit to master: https://github.com/hyoo-ru/mol.hyoo.ru/commit/6da2cca79da6af91ae398c7b4095c15bfd678a81 image

Latest commit to gh-pages: https://github.com/hyoo-ru/mol.hyoo.ru/commit/f9d1bbd4029ae57974ca844a18a3e4e40dd6423a image

Workflow: https://github.com/hyoo-ru/mol.hyoo.ru/blob/master/.github/workflows/deploy.yml

What could it be from?

nin-jin avatar Jul 16 '20 08:07 nin-jin

The author is set by the user who does the commit into master. I use GITHUB_ACTOR to get that information.

GITHUB_ACTOR The name of the person or app that initiated the workflow. For example, octocat.

You can see how it is set up here: https://github.com/alex-page/blazing-fast-gh-pages-deploy/blob/9424605f6c68fbedcf3c58c42f6cdfe115e4756c/index.js#L9-L22

alex-page avatar Jul 16 '20 13:07 alex-page

The author is set by the user who does the commit into master.

But last commit to master is my, not @zerkalica.

nin-jin avatar Jul 16 '20 20:07 nin-jin