mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
00939b1609
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
39 lines
899 B
YAML
39 lines
899 B
YAML
name: Get Composer Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- testing
|
|
paths:
|
|
- ".github/workflows/_internal-get-composer-version.yaml"
|
|
- "get-composer-version/**"
|
|
- "!(**/*.md)"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/workflows/_internal-get-composer-version.yaml"
|
|
- "get-composer-version/**"
|
|
- "!(**/*.md)"
|
|
|
|
jobs:
|
|
get-composer-version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set PHP Version
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.1
|
|
tools: composer:v2.4.2
|
|
|
|
- uses: ./get-composer-version
|
|
id: composer-version
|
|
|
|
|
|
- name: Fail if versions do not match
|
|
if: steps.composer-version.outputs.version != '2.4.2'
|
|
shell: bash
|
|
run: echo "${{ steps.composer-version.outputs.version }}" && exit 1
|
|
|