Skip to content

Commit

Permalink
Update compare-versions.yml to enhance version lookup and output stru…
Browse files Browse the repository at this point in the history
…cture
  • Loading branch information
nmaguiar authored Jan 12, 2025
1 parent 7b9693d commit 9dde1aa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/compare-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,21 @@ jobs:
_EOF_
oafp /tmp/_tmpMain.json out=ctable
- name: Preparing a lookup table for the latest versions of the tools
- name: Preparing a lookup table for the build versions of the tools
run : |
oafp .github/build-versions.json out=ch ch="(type: file, options: (file: /tmp/_tmp.json))" chkey="tool" path=versions
oafp /tmp/_tmp.json
- name: Preparing a lookup table for the latest versions of the tools
run : |
oafp .github/latest-versions.json out=ch ch="(type: file, options: (file: /tmp/_tmpl.json))" chkey="tool" path=versions
oafp /tmp/_tmp.json
- name: Joining the versions retrieved to produce a markdown table
run : |
oafp chs="(name: v, type: file, options: (file: /tmp/_tmp.json))"\
oafp chs="[(name: v, type: file, options: (file: /tmp/_tmp.json))|(name: l, type: file, options: (file: /tmp/_tmpl.json))]"\
/tmp/_tmpMain.json\
path="[].{tool:tool,latestOnline:lastVer,buildVersion:ch('v','get',{tool:tool},__).version}"\
path="[].{tool:tool,latestOnline:lastVer,buildVersion:ch('v','get',{tool:tool},__).version,latestversion:ch('l','get',%7Btool%3Atool%7D,__).version}"\
out=mdtable\
sql="select * where tool <> 'mc' order by tool" > .github/compare-versions.md
Expand Down

0 comments on commit 9dde1aa

Please sign in to comment.