Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:

- name: "Update active versions file"
run: |
php bin/generate_active_versions.php > actives.json
php action-bin/generate_active_versions.php > actives.json
cat actives.json

- name: "Update QA releases file"
run: |
php bin/generate_qa-releases.php > qa-releases.json
php action-bin/generate_qa-releases.php > qa-releases.json
cat qa-releases.json

- name: "Add / commit / push"
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Example with `7.4+` versions:

> [!TIP]
>
> - Find the **lowest** supported version:
> - Retrieve **lowest** supported version:
> ```bash
> jq -r '(.[] | keys | sort) | first' actives.json
> # output: 7.4
> bin/fetch_lowest_supported_version.sh
> ```
> - Find the **latest** supported version:
> Output: `7.4`
> - Retrieve **latest** supported version:
> ```bash
> jq -r '(.[] | keys | sort) | last' actives.json
> # output: 8.1
> bin/fetch_latest_supported_version.sh
> ```
> Output: `8.1`
>

## QA releases
Expand Down Expand Up @@ -80,11 +80,11 @@ Example with `8.5` version:

> [!TIP]
>
> In order to find the nightly version, you can use the following `jq` filter command:
> Retrieve **nightly** version:
> ```bash
> jq -r 'last(.[] | .[] | select(.supported == false)) | .short_version' qa-releases.json
> # output: 8.5
> bin/fetch_nightly_version.sh
> ```
> Output: `8.5`
>

<hr/>
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions bin/fetch_latest_supported_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

set -eu

SCRIPT_PATH=$(dirname "$0")

jq -r '(.[] | keys | sort) | last' "${SCRIPT_PATH}/../actives.json"
7 changes: 7 additions & 0 deletions bin/fetch_lowest_supported_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

set -eu

SCRIPT_PATH=$(dirname "$0")

jq -r '(.[] | keys | sort) | first' "${SCRIPT_PATH}/../actives.json"
7 changes: 7 additions & 0 deletions bin/fetch_nightly_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

set -eu

SCRIPT_PATH=$(dirname "$0")

jq -r 'last(.[] | .[] | select(.supported == false)) | .short_version' "${SCRIPT_PATH}/../qa-releases.json"