Skip to content

Commit cf4b54e

Browse files
committed
fix and add update-name option
1 parent 363941e commit cf4b54e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/run_dedupe.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
type: boolean
99
description: Check if organization has geospatial duplicates
1010
required: true
11+
goodname:
12+
type: boolean
13+
description: Check if the shortest name to be kept
14+
required: true
1115
keep:
1216
type: choice
1317
description: 'Keep'
@@ -184,10 +188,18 @@ jobs:
184188
if ${{ inputs.geospatial }}; then
185189
args="${args} --geospatial"
186190
fi
191+
192+
if ${{ inputs.goodname }}; then
193+
args="${args} --update-name"
194+
fi
195+
187196
if ${{ inputs.keep == 'newest' }}; then
188197
args="${args} --newest"
198+
fi
199+
189200
if ! ${{ inputs.dryrun }}; then
190201
args="${args} --commit"
191202
args="${args} --api-key ${{secrets.CKAN_API_TOKEN}}"
192203
fi
193-
pipenv run python duplicates-identifier-api.py $args ${{ inputs.organization }}
204+
205+
pipenv run python duplicates-identifier-api.py ${args} ${{ inputs.organization }}

0 commit comments

Comments
 (0)