Skip to content

Commit 363941e

Browse files
authored
Merge pull request #45 from GSA/keep-newest
Keep newest
2 parents c744c6e + d4b71d4 commit 363941e

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/check_harvest_source_duplicates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
steps:
1212
- name: checkout
1313
uses: actions/checkout@v3
14-
- name: Set up Python 3.8
14+
- name: Set up Python 3.12
1515
uses: actions/setup-python@v1
16-
with: { python-version: 3.8 }
16+
with: { python-version: 3.12 }
1717
- name: Install pip and pipenv
1818
run: |
1919
python -m pip install --upgrade pip

.github/workflows/check_org_duplicates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
steps:
1212
- name: checkout
1313
uses: actions/checkout@v2
14-
- name: Set up Python 3.8
14+
- name: Set up Python 3.12
1515
uses: actions/setup-python@v1
16-
with: { python-version: 3.8 }
16+
with: { python-version: 3.12 }
1717
- name: Install pip and pipenv
1818
run: |
1919
python -m pip install --upgrade pip

.github/workflows/run_dedupe.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
type: boolean
99
description: Check if organization has geospatial duplicates
1010
required: true
11+
keep:
12+
type: choice
13+
description: 'Keep'
14+
required: true
15+
default: 'newest'
16+
options:
17+
- newest
18+
- oldest
1119
dryrun:
1220
type: boolean
1321
description: Only run the dryrun
@@ -161,9 +169,9 @@ jobs:
161169
steps:
162170
- name: checkout
163171
uses: actions/checkout@v2
164-
- name: Set up Python 3.8
172+
- name: Set up Python 3.12
165173
uses: actions/setup-python@v1
166-
with: { python-version: 3.8 }
174+
with: { python-version: 3.12 }
167175
- name: Install pip and pipenv
168176
run: |
169177
python -m pip install --upgrade pip
@@ -176,6 +184,8 @@ jobs:
176184
if ${{ inputs.geospatial }}; then
177185
args="${args} --geospatial"
178186
fi
187+
if ${{ inputs.keep == 'newest' }}; then
188+
args="${args} --newest"
179189
if ! ${{ inputs.dryrun }}; then
180190
args="${args} --commit"
181191
args="${args} --api-key ${{secrets.CKAN_API_TOKEN}}"

0 commit comments

Comments
 (0)