Skip to content

Commit 9742ccb

Browse files
committed
change updating script so it properly sorts without need to run fix
1 parent 35c78e3 commit 9742ccb

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/dispatch_update.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
- name: Lint, Fix, and Update
4141
run: |
4242
make INSTANCE=$INSTANCE lint
43-
make INSTANCE=$INSTANCE fix
4443
make INSTANCE=$INSTANCE update-all
4544
env:
4645
INSTANCE: ${{ inputs.instance }}
@@ -53,7 +52,6 @@ jobs:
5352
echo "pr_body<<EOF"
5453
echo "I ran the following:"
5554
echo "- make INSTANCE=$INSTANCE lint"
56-
echo "- make INSTANCE=$INSTANCE fix"
5755
echo "- make INSTANCE=$INSTANCE update-all"
5856
echo "EOF"
5957
} >> "$GITHUB_OUTPUT"

scripts/update_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def update_file(fn, owner=None, name=None, without=False):
6868
if latest_rev not in tool['revisions']:
6969
# TS doesn't support utf8 and we don't want to either.
7070
tool['revisions'].append(str(latest_rev))
71+
tool['revisions'] = sorted(list(set(map(str, tool['revisions']))))
7172

7273
with open(fn + '.lock', 'w') as handle:
7374
yaml.dump(locked, handle, default_flow_style=False)

0 commit comments

Comments
 (0)