use jq to get chill version
Prepare release for chill app / update-deps (push) Failing after 8s Details

This commit is contained in:
Julien Fastré 2023-11-02 00:35:08 +01:00
parent 545c85ca0d
commit 33af4f8ba1
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
1 changed files with 2 additions and 6 deletions

View File

@ -14,9 +14,7 @@ jobs:
uses: https://github.com/actions/checkout@v4
- name: get the previous chill version
id: chill-before
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
with:
args: echo version=$(composer info | grep chill-bundles | awk '{print $2}') >> $GITHUB_OUTPUT
run: 'echo version=$(cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'' >> $GITHUB_OUTPUT'
- name: run composer update to update composer.lock
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
with:
@ -27,9 +25,7 @@ jobs:
run: 'echo is_composer_lock_changed=$(git diff --name-only | grep "composer\.lock" | wc -l) >> $GITHUB_OUTPUT'
- name: get the new chill version
id: chill-after
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
with:
args: echo version=$(composer info | grep chill-bundles | awk '{print $2}') >> $GITHUB_OUTPUT
run: 'echo version=$(cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'' >> $GITHUB_OUTPUT'
- name: debug outputs
env: { CONTENT : "${{ toJson(steps) }}" }
run: "echo $CONTENT"