ci: use fromJson to propely compare flatpack and pcsx2 release versions

This commit is contained in:
Ty Lamontagne 2024-07-31 11:01:14 -04:00
parent a5a8a1a06b
commit b0026ff59f
No known key found for this signature in database
GPG Key ID: 41C90AE46958A892
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ jobs:
build: build:
needs: check needs: check
if: needs.check.outputs.FLATHUB_RELEASE < needs.check.outputs.PCSX2_RELEASE # outputs are automatically compared as strings. This doesn't work in our favour
# Use fromJson() to convert them to proper integers...
# see: https://github.com/github/docs/pull/25870
# and: https://github.com/orgs/community/discussions/57480
if: fromJson(needs.check.outputs.FLATHUB_RELEASE) < fromJson(needs.check.outputs.PCSX2_RELEASE)
name: "Build and publish Flatpak" name: "Build and publish Flatpak"
uses: ./.github/workflows/linux_build_flatpak.yml uses: ./.github/workflows/linux_build_flatpak.yml
with: with: