This action retrieves a list of active PHP Releases.
The list of major versions available, as a list of strings (string[]
), for example:
[
"8"
]
The list of minor versions available, as a list of strings (string[]
), for example:
[
"8.1",
"8.2",
"8.3"
]
The list of minor versions available, as a list of objects (object[]
), for example:
[
{
"major": "8",
"minor": "1"
},
{
"major": "8",
"minor": "2"
},
{
"major": "8",
"minor": "3"
}
]
The list of patch versions available, as a list of strings (string[]
), for example:
[
"8.1.28",
"8.2.19",
"8.3.7"
]
The list of patch versions available, as a list of objects (object[]
), for example:
[
{
"major": "8",
"minor": "1",
"patch": "28"
},
{
"major": "8",
"minor": "2",
"patch": "19"
},
{
"major": "8",
"minor": "3",
"patch": "7"
}
]
The list of ".tar.gz" releases available, as a list of objects (object[]
), for example:
[
{
"version": "8.1.28",
"filename": "php-8.1.28.tar.gz",
"name": "PHP 8.1.28 (tar.gz)",
"sha256": "a2a9d853f4a4c9ff8631da5dc3a6cec5ab083ef37a214877b0240dcfcdfdefea",
"date": "11 Apr 2024"
},
{
"version": "8.2.19",
"filename": "php-8.2.19.tar.gz",
"name": "PHP 8.2.19 (tar.gz)",
"sha256": "8bfdd20662b41a238a5acd84fab3e05c36a685fcb56e6d8ac18eeb87057ab2bc",
"date": "09 May 2024"
},
{
"version": "8.3.7",
"filename": "php-8.3.7.tar.gz",
"name": "PHP 8.3.7 (tar.gz)",
"sha256": "2e11d10b651459a8767401e66b5d70e3b048e446579fcdeb0b69bcba789af8c4",
"date": "09 May 2024"
}
]
The list of ".tar.bz2" releases available, as a list of objects (object[]
), for example:
[
{
"version": "8.1.28",
"filename": "php-8.1.28.tar.bz2",
"name": "PHP 8.1.28 (tar.bz2)",
"sha256": "8be450096e0153c47d75384e7dd595cc897f1d53ce0060708ce9589bcc3141ee",
"date": "11 Apr 2024"
},
{
"version": "8.2.19",
"filename": "php-8.2.19.tar.bz2",
"name": "PHP 8.2.19 (tar.bz2)",
"sha256": "3c18f7ce51b7c7b26b797e1f97079d386b30347eb04e817f5e6c8e9b275e2a6a",
"date": "09 May 2024"
},
{
"version": "8.3.7",
"filename": "php-8.3.7.tar.bz2",
"name": "PHP 8.3.7 (tar.bz2)",
"sha256": "01c20cde1c5a5696651875ed22f507849679fba740f8c421616b7d43d7f797da",
"date": "09 May 2024"
}
]
The list of ".tar.xz" releases available, as a list of objects (object[]
), for example:
[
{
"version": "8.1.28",
"filename": "php-8.1.28.tar.xz",
"name": "PHP 8.1.28 (tar.xz)",
"sha256": "95d0b2e9466108fd750dab5c30a09e5c67f5ad2cb3b1ffb3625a038a755ad080",
"date": "11 Apr 2024"
},
{
"version": "8.2.19",
"filename": "php-8.2.19.tar.xz",
"name": "PHP 8.2.19 (tar.xz)",
"sha256": "aecd63f3ebea6768997f5c4fccd98acbf897762ed5fc25300e846197a9485c13",
"date": "09 May 2024"
},
{
"version": "8.3.7",
"filename": "php-8.3.7.tar.xz",
"name": "PHP 8.3.7 (tar.xz)",
"sha256": "d53433c1ca6b2c8741afa7c524272e6806c1e895e5912a058494fea89988570a",
"date": "09 May 2024"
}
]
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
major: ${{ steps.releases.outputs.major }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
major: ${{ fromJson(needs.setup.outputs.major) }}
steps:
- run: echo ${{ matrix.major }}
Sample Output
8
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
minor: ${{ steps.releases.outputs.minor }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
minor: ${{ fromJson(needs.setup.outputs.minor) }}
steps:
- run: echo ${{ matrix.minor }}
Sample Output
8.1
8.2
8.3
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
split: ${{ steps.releases.outputs.minor-split }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
version: ${{ fromJson(needs.setup.outputs.split) }}
steps:
- run: echo ${{ matrix.version.major }}.${{ matrix.version.minor }}
Sample Output
8.1
8.2
8.3
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
patch: ${{ steps.releases.outputs.patch }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
patch: ${{ fromJson(needs.setup.outputs.patch) }}
steps:
- run: echo ${{ matrix.patch }}
Sample Output
8.1.28
8.2.19
8.3.7
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
split: ${{ steps.releases.outputs.patch-split }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
version: ${{ fromJson(needs.setup.outputs.split) }}
steps:
- run: echo ${{ matrix.version.major }}.${{ matrix.version.minor }}.${{ matrix.version.patch }}
Sample Output
8.1.28
8.2.19
8.3.7
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
release: ${{ steps.releases.outputs.release }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
with:
format: short
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
release: ${{ fromJson(needs.setup.outputs.release-gz) }}
steps:
- run: echo ${{ matrix.release.name }}
Sample Output
PHP 8.1.28 (tar.gz)
PHP 8.2.19 (tar.gz)
PHP 8.3.7 (tar.gz)
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
release: ${{ steps.releases.outputs.release }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
with:
format: short
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
release: ${{ fromJson(needs.setup.outputs.release-bz2) }}
steps:
- run: echo ${{ matrix.release.name }}
Sample Output
PHP 8.1.28 (tar.bz2)
PHP 8.2.19 (tar.bz2)
PHP 8.3.7 (tar.bz2)
name: PHP Building
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
setup:
name: Generate build matrix
runs-on: ubuntu-latest
outputs:
release: ${{ steps.releases.outputs.release }}
steps:
- id: releases
name: Get PHP Releases
uses: flavioheleno/php-active-releases-action@main
with:
format: short
build:
name: Build matrix
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
release: ${{ fromJson(needs.setup.outputs.release-xz) }}
steps:
- run: echo ${{ matrix.release.name }}
Sample Output
PHP 8.1.28 (tar.xz)
PHP 8.2.19 (tar.xz)
PHP 8.3.7 (tar.xz)
This project is licensed under the MIT License.