[#6] Add automated database updater #10

Merged
realloc merged 1 commit from george.bartolomey/issue6pr into master 2024-07-05 07:35:00 +00:00 AGit
No description provided.
requested review from realloc 2024-07-03 14:25:45 +00:00
requested review from fyrchik 2024-07-04 07:00:02 +00:00
fyrchik reviewed 2024-07-04 07:21:48 +00:00
@ -0,0 +13,4 @@
git switch -c update-dbs
git add .
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.frostfs.info/TrueCloudLab/frostfs-locode-db
git commit -m "Update databases" && \
Owner

How about mentioning having some version info in the commit message?

How about mentioning having some version info in the commit message?
Author
Member

What you do mean by "version"? Date of update or log of changed files?

What you do mean by "version"? Date of update or log of changed files?
Owner

I mean we have 27 December 2023 UN/LOCODE by Country version 2023-2 at the https://unece.org/trade/cefact/UNLOCODE-Download , either date or 2023-2 could serve as a version.

Or 232 in the loc232... filename, it seems related.

Not very important, if it is hard to extract, but IMO is useful.

I mean we have `27 December 2023 UN/LOCODE by Country version 2023-2` at the https://unece.org/trade/cefact/UNLOCODE-Download , either date or `2023-2` could serve as a version. Or `232` in the `loc232...` filename, it seems related. Not very important, if it is hard to extract, but IMO is useful.
Author
Member

I can introduce this by writing loc232 to tmp/version.txt. Also we have OpenFlights which doesn't have any releases. Is there any method to get version of OpenFlights databases?

I can introduce this by writing `loc232` to `tmp/version.txt`. Also we have OpenFlights which doesn't have any releases. Is there any method to get version of OpenFlights databases?
Author
Member

Done.

Done.
fyrchik marked this conversation as resolved
@ -0,0 +14,4 @@
git add .
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.frostfs.info/TrueCloudLab/frostfs-locode-db
git commit -m "Update databases" && \
git push origin HEAD:refs/for/master -o title="Automatic update databases" -o topic=update-db
Owner

Should be either Automatically update databases or Automatic database update

Should be either `Automatically update databases` or `Automatic database update`
Owner

@george.bartolomey please, change this too

@george.bartolomey please, change this too
Author
Member

I changed this already.

I changed this already.
Owner

Oh, right, sorry. Forgejo usually prints outdated if the code in line has changed.

Oh, right, sorry. Forgejo usually prints `outdated` if the code in line has changed.
fyrchik marked this conversation as resolved
george.bartolomey force-pushed george.bartolomey/issue6pr from 8511bfa18a to fa89d45027 2024-07-04 09:46:32 +00:00 Compare
george.bartolomey force-pushed george.bartolomey/issue6pr from fa89d45027 to 3feec01b21 2024-07-04 11:34:47 +00:00 Compare
fyrchik approved these changes 2024-07-04 13:19:49 +00:00
realloc approved these changes 2024-07-05 07:34:43 +00:00
realloc merged commit 3feec01b21 into master 2024-07-05 07:35:00 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-locode-db#10
No description provided.