get chill version
Prepare release for chill app / update-deps (push) Successful in 26s Details

This commit is contained in:
Julien Fastré 2023-11-02 00:20:08 +01:00
parent 38b7588425
commit 545c85ca0d
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
1 changed files with 11 additions and 3 deletions

View File

@ -12,17 +12,25 @@ jobs:
steps:
- name: check out repository
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
- name: run composer update to update composer.lock
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
with:
# this is where we set the command to execute
args: composer update --no-install
- name: debug composer.lock changed
run: 'git diff --name-only | grep "composer\.lock" | wc -l'
- name: is composer.lock changed ?
id: composer-lock-changed
run: 'echo is_composer_lock_changed=$(git diff --name-only | grep "composer\.lock" | wc -l) >> $GITHUB_OUTPUT'
- name: debug 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
- name: debug outputs
env: { CONTENT : "${{ toJson(steps) }}" }
run: "echo $CONTENT"
- name: add a changie file because ${{ steps.composer-lock-changed.outputs.composer_lock_changed }}