Skip to content

Commit

Permalink
Fixed Auto Tag workflow for newer JQ version (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibexa-yuna authored Feb 2, 2025
1 parent 869dd8c commit add791a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/auto_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
coverage: none
extensions: pdo_sqlite, gd
tools: cs2pr
Expand All @@ -97,7 +97,7 @@ jobs:
installation_id: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }}
private_key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit add791a

Please sign in to comment.