fix commiter name on topo update action

This commit is contained in:
Hugh Rundle 2021-02-01 19:47:36 +11:00
parent 7619f02733
commit 65b3d2a70b
2 changed files with 3 additions and 2 deletions

View file

@ -12,8 +12,8 @@ for (let name of contributors) {
for (let commit of eventJson.commits) {
// we only look for authors, not commiters, so we automatically ignore "actions-user"
if ( !contributors.includes(commit.author.name) ) {
// auto-commits use my username, not my actual name
if (commit.author.name != 'hughrun') {
// auto-commits for updating TopoJSON use 'Library Map Bot' as user
if (commit.author.name != 'Library Map Bot') {
contributors.push(commit.author.name)
}
}

View file

@ -29,6 +29,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
author: Library Map Bot <librarymap@hugh.run>
commit-message: Update TopoJSON boundaries
title: Update TopoJSON boundaries
body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.'