Skip to content

Commit 4358d94

Browse files
authored
Merge pull request #11 from WyriHaximus/add-support-for-betas-and-RCs
2 parents 0b5ad1b + 8cfc1ce commit 4358d94

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,21 @@ jobs:
4848
id: versions
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
with:
52-
milestone: "v1.0.0"
5351
- name: Show Versions
5452
run: echo "${VERSIONS}"
5553
env:
5654
VERSIONS: ${{ steps.versions.outputs.versions }}
55+
- name: Fetch Versions including upcoming releases
56+
uses: ./
57+
id: versionsincludingupcomingreleases
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
upcomingReleases: true
62+
- name: Show Versions including upcoming releases
63+
run: echo "${VERSIONS}"
64+
env:
65+
VERSIONS: ${{ steps.versionsincludingupcomingreleases.outputs.versions }}
5766
build-docker-image:
5867
name: Build Docker image
5968
needs:

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ description: 'Fetches the currently supported PHP versions from php.net'
33
branding:
44
icon: 'list'
55
color: 'green'
6+
inputs:
7+
upcomingReleases:
8+
description: 'Include upcoming new major or minor releases'
9+
required: false
610
outputs:
711
versions:
812
description: 'JSON array with the supported versions'

versions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
$versions = [];
44

5+
if (getenv('INPUT_UPCOMINGRELEASES') == 'true') {
6+
$versions[] = '8.1.0beta3';
7+
}
8+
59
$d = new DOMDocument();
610
@$d->loadHTML(file_get_contents('https://php.net/supported-versions')); // the variable $ads contains the HTML code above
711

0 commit comments

Comments
 (0)