mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
bc840e1372
This creates a new A Github Action that determines the currently installed version of Composer. Co-authored-by: Vitaliy Golomoziy <vitaliy.golomoziy@gmail.com>
21 lines
544 B
YAML
21 lines
544 B
YAML
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"
|