Skip to content

Commit

Permalink
Add x-checker-data
Browse files Browse the repository at this point in the history
  • Loading branch information
xylo04 committed Jun 7, 2021
1 parent ab9200d commit 765b66a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions radio.k0swe.Kel_Agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@ modules:
tag: v1.4.2
commit: b65e62901fc1c0d968042419e74789f6af455eb9
dest: vendor/github.com/gorilla/websocket/
x-checker-data:
type: git
tag-pattern: ^v([\\d.]+)$

This comment has been minimized.

Copy link
@gasinvein

gasinvein Jul 10, 2021

Member

This regex won't match anything. One backslash is redundant, you don't need to escape it in YAML.
The same applies to the other sources below.

This comment has been minimized.

Copy link
@xylo04

xylo04 Jul 10, 2021

Author Collaborator

Done in e753b42

version-scheme: semantic

- type: git
url: https://github.com/k0swe/wsjtx-go.git
tag: v2.1.0
commit: cbb8d0e78f4870291f606327a3885928f121751a
dest: vendor/github.com/k0swe/wsjtx-go/v2/
x-checker-data:
type: git
tag-pattern: ^v([\\d.]+)$
version-scheme: semantic

- type: git
url: https://github.com/leemcloughlin/jdn.git
commit: 6f88db6a6bf2176674100d1a1c692596fcf6e2ba
Expand All @@ -33,6 +43,11 @@ modules:
url: https://github.com/k0swe/kel-agent.git
tag: v0.3.5
commit: edcd7dfd4e60153c1972e148f8912478022407d8
x-checker-data:
type: git

This comment has been minimized.

Copy link
@gasinvein

gasinvein Jul 10, 2021

Member

Consider using json-type checker data for the main source. Git checker currently can't get timestamps, resulting in a new PR each day if previous wasn't merged.
Something like this should do:

x-checker-data:
  type: json
  url: https://api.github.com/repos/k0swe/kel-agent/releases/latest
  tag-query: .tag_name
  version-query: $tag | sub("^v"; "")
  timestamp-query: .published_at

This comment has been minimized.

Copy link
@xylo04

xylo04 Jul 10, 2021

Author Collaborator

Done in e753b42. Thanks!

tag-pattern: ^v([\\d.]+)$
version-scheme: semantic

buildsystem: simple
build-commands:
- cp assets/modules.txt vendor/
Expand All @@ -41,3 +56,4 @@ modules:
- install -Dm644 assets/radio.k0swe.Kel_Agent.svg /app/share/icons/hicolor/scalable/apps/radio.k0swe.Kel_Agent.svg
- install -Dm644 assets/radio.k0swe.Kel_Agent.metainfo.xml /app/share/metainfo/radio.k0swe.Kel_Agent.metainfo.xml
- install -Dm644 assets/radio.k0swe.Kel_Agent.desktop /app/share/applications/radio.k0swe.Kel_Agent.desktop

0 comments on commit 765b66a

Please sign in to comment.