From 025f8f67edcb2fb5bcf27d11770430b5ae88d04c Mon Sep 17 00:00:00 2001 From: Naxvog Date: Tue, 1 Oct 2024 22:56:53 +0200 Subject: [PATCH] Simplification & generalisation --- .github/workflows/static.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0bdec31..ea9bc5a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -24,7 +24,7 @@ jobs: - name: Modify composer.json run: > - jq '.name |= "pestphp/pest-plugin-arch-dev" | . += {"replace":{"pestphp/pest-plugin-arch": "*"}}' composer.json > composer.json.tmp + jq '. += {"replace":{(.name): "*"}} | .name = (.name + "-dev")' composer.json.tmp && mv composer.json.tmp composer.json - name: Install Dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc9e799..920c730 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: - name: Modify composer.json run: > - jq '.name |= "pestphp/pest-plugin-arch-dev" | . += {"replace":{"pestphp/pest-plugin-arch": "*"}}' composer.json > composer.json.tmp + jq '. += {"replace":{(.name): "*"}} | .name = (.name + "-dev")' composer.json.tmp && mv composer.json.tmp composer.json - name: Install PHP dependencies