File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ description: 'Fetches the currently supported PHP versions from php.net'
33branding :
44 icon : ' list'
55 color : ' green'
6+ inputs :
7+ upcomingReleases :
8+ description : ' Include upcoming new major or minor releases'
9+ required : false
610outputs :
711 versions :
812 description : ' JSON array with the supported versions'
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments