feat(get-composer-version): create new action (#145)

This creates a new A Github Action that determines the currently installed version of Composer.

Co-authored-by: Vitaliy Golomoziy <vitaliy.golomoziy@gmail.com>
This commit is contained in:
Damien Retzinger
2023-09-21 08:15:24 -04:00
committed by GitHub
parent f79de7d7d2
commit bc840e1372
3 changed files with 91 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: "Get Composer Version"
author: "Graycore"
description: " A Github Action that determines the currently installed version of Composer"
outputs:
version: # id of output
description: 'The determined version of Composer'
value: ${{ steps.get-composer-version.outputs.version }}
runs:
using: "composite"
steps:
- run: echo "version=$(composer --version | awk '{print $3}')" >> $GITHUB_OUTPUT
shell: bash
name: Compute Installed Composer version
id: get-composer-version
branding:
icon: "code"
color: "green"