Skip to content

Commit

Permalink
test for getting the version
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccallister committed Dec 2, 2024
1 parent 087cff8 commit 830440a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/php84.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,17 @@ jobs:
pull: true
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}

- name: Get the PHP version
id: php_version
env:
PHP_VERSION: ${{ env.PHP_VERSION }}
IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
run: |
php_version=$(docker run --rm --entrypoint sh ${IMAGE} -c 'php -v | head -n 1 | cut -d " " -f 2')
echo "PHP_VERSION=$php_version" >> $GITHUB_STATE
- name: Print PHP Version
run: echo "The detected PHP version is $PHP_VERSION"
env:
PHP_VERSION: ${{ steps.php_version.outputs.PHP_VERSION }}

0 comments on commit 830440a

Please sign in to comment.