From afc9def26efaaefbf425a55961fb91c4060cc688 Mon Sep 17 00:00:00 2001 From: Fuhu Xia Date: Thu, 2 Jan 2025 15:03:56 -0500 Subject: [PATCH] keep newest as defaul --- .github/workflows/run_dedupe.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/run_dedupe.yml b/.github/workflows/run_dedupe.yml index 3185cf9..bd5388e 100644 --- a/.github/workflows/run_dedupe.yml +++ b/.github/workflows/run_dedupe.yml @@ -8,6 +8,14 @@ on: type: boolean description: Check if organization has geospatial duplicates required: true + keep: + type: choice + description: 'Keep' + required: true + default: 'newest' + options: + - newest + - oldest dryrun: type: boolean description: Only run the dryrun @@ -176,6 +184,8 @@ jobs: if ${{ inputs.geospatial }}; then args="${args} --geospatial" fi + if ! ${{ inputs.keep == 'newest' }}; then + args="${args} --newest" if ! ${{ inputs.dryrun }}; then args="${args} --commit" args="${args} --api-key ${{secrets.CKAN_API_TOKEN}}"