From 5e0e2cf6d2558f09f31083dea2da5ad950d36fed Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:48:27 +0100 Subject: [PATCH] [CI] Fixed Auto Tag workflow for newer JQ version (#194) For more details see https://github.com/ibexa/oss/pull/194 --- .github/workflows/auto_tag.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto_tag.yml b/.github/workflows/auto_tag.yml index 0e3f00cf7b..3e058236e6 100644 --- a/.github/workflows/auto_tag.yml +++ b/.github/workflows/auto_tag.yml @@ -19,7 +19,7 @@ on: jobs: preparation: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest # This should allow parallel runs in a chain, e.g. OSS->Content->Experience->Commerce # whilst allowing Satis to process timeout-minutes: 30 @@ -153,12 +153,12 @@ jobs: # if they exist, to update the values of the keys in the require object. - name: Patch composer require versions run: | - jq --argfile release release.json ' + jq --slurpfile release <(cat release.json) ' .require |= ( to_entries | map({ key: .key, - value: (if ($release[.key]) then $release[.key] else .value end) + value: (if ($release[0][.key]) then $release[0][.key] else .value end) }) | from_entries ) ' composer.json > composer.tmp