Commit Graph

3 Commits

Author SHA1 Message Date
Damien Retzinger c2c3755729 feat: use actions/checkout@v6 2026-02-18 14:43:05 -05:00
Damien Retzinger 9c06178b30 feat!: replace mage-os/github-actions with graycoreio/github-actions-magento2 2025-03-25 09:41:29 -04:00
Damien Retzinger 01e4ccbc54 feat(semver-compare): add new Github action (#146)
This adds a new Github Action that semantically compares two versions, like 2.1.1 and 2.3.0 giving information about whether or the version is "higher" or "lower" than another version. The action exposes an output called `result` which will match the return type of the PHP [version_compare](https://www.php.net/manual/en/function.version-compare.php) function.

Currently, this action compares `version` against `compare_against` and returns:

- `-1` - if `version` is lower than `compare_against`
- `0` - if `version` is equal to `compare_against`
- `1` - if `version` is greater than `compare_against`

Co-authored-by: Vitaliy Golomoziy <vitaliy.golomoziy@gmail.com>
2023-09-21 08:35:57 -04:00