planeur-net / airspace

Fichier des espaces aériens Francais au format "openair"
5 stars 9 forks source link

Add version information in txt file #23

Closed llauner closed 1 year ago

llauner commented 1 year ago
    @llauner what is missing in current setup is something to explicitly say what version this file is coming from.

Maybe a git tag is not enough for that. But maybe the build mechanism can incorporate a field as comment in the file with the released version? Something like including date + time + hash of last commit?

Originally posted by @snip in https://github.com/planeur-net/airspace/issues/12#issuecomment-1308606924

llauner commented 1 year ago

@snip I've just created a github action to do just that: https://github.com/planeur-net/airspace/pull/24

The action will automatically add a version at the top of the file. It will look like this: *version= 6c37385 2022-10-27 19:09:49 +0200

Where 6c37385 is the latest commit for france.txt + date

snip commented 1 year ago

Nice ! Thanks.