Closed tumido closed 2 years ago
✔️ Deploy Preview for relaxed-goldstine-ebb96e ready!
🔨 Explore the source changes: a45ba5e30ddb7ae48cfe47c1d57dcefcd40dbe13
🔍 Inspect the deploy log: https://app.netlify.com/sites/relaxed-goldstine-ebb96e/deploys/61d448f887fcef000714f9f4
😎 Browse the preview: https://deploy-preview-341--relaxed-goldstine-ebb96e.netlify.app
/lgtm /approve
TIL that GitHub actions uses the last editor of the cron schedule as the GitHub action actor.
https://github.community/t/who-will-be-the-github-actor-when-a-workflow-runs-on-a-schedule/17369
I've noticed that scheduled deploy runs are creating activity on my GH account - creating commits in my name, since I'm the last user that edited the
schedule
... Let's change that, so the actor is forced togithub-actions[bot]
on the scheduled runs while it remains variable for the push/manual triggers to the actual changeset authors.Uses: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-git-username-and-email https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-custom-commit-message https://docs.github.com/en/actions/learn-github-actions/expressions https://docs.github.com/en/actions/learn-github-actions/contexts#github-context