Skip to content

Commit add791a

Browse files
authored
Fixed Auto Tag workflow for newer JQ version (#1171)
1 parent 869dd8c commit add791a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/auto_tag.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
preparation:
22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-latest
2323
# This should allow parallel runs in a chain, e.g. OSS->Content->Experience->Commerce
2424
# whilst allowing Satis to process
2525
timeout-minutes: 30
@@ -84,7 +84,7 @@ jobs:
8484
- name: Setup PHP Action
8585
uses: shivammathur/setup-php@v2
8686
with:
87-
php-version: 8.1
87+
php-version: 8.3
8888
coverage: none
8989
extensions: pdo_sqlite, gd
9090
tools: cs2pr
@@ -97,7 +97,7 @@ jobs:
9797
installation_id: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }}
9898
private_key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
9999

100-
- uses: actions/checkout@v3
100+
- uses: actions/checkout@v4
101101
with:
102102
persist-credentials: false
103103

@@ -153,12 +153,12 @@ jobs:
153153
# if they exist, to update the values of the keys in the require object.
154154
- name: Patch composer require versions
155155
run: |
156-
jq --argfile release release.json '
156+
jq --slurpfile release <(cat release.json) '
157157
.require |= (
158158
to_entries |
159159
map({
160160
key: .key,
161-
value: (if ($release[.key]) then $release[.key] else .value end)
161+
value: (if ($release[0][.key]) then $release[0][.key] else .value end)
162162
}) | from_entries
163163
)
164164
' composer.json > composer.tmp

0 commit comments

Comments
 (0)