Skip to content

Commit 5b39c77

Browse files
committed
wip
1 parent c92b220 commit 5b39c77

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/_determine_php_versions.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@ jobs:
2020
id: supported_versions
2121
run: |
2222
curl -sSL "https://www.php.net/releases/index.php?json" | jq -c "[..| objects | .supported_versions? // empty] | flatten" > "versions.json"
23+
- name: Get PHP tags
24+
uses: octokit/[email protected]
25+
id: get_tags
26+
with:
27+
route: GET /repos/php/php-src/git/matching-reefs/tags
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2330
- name: Determine version and hash
31+
env:
32+
PHP_TAGS: ${{ steps.get_tags.outputs.data }}
2433
run: |
25-
curl -sSL \
26-
-H "Accept: application/vnd.github+json" \
27-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
28-
-H "X-GitHub-Api-Version: 2022-11-28" \
29-
"https://api.github.com/repos/php/php-src/git/matching-refs/tags" > "tags.json"
34+
echo "${PHP_TAGS}" > "tags.json"
3035
jq -r '.[]' "versions.json" | while read VERSION; do
3136
jq -r '.[] | (.ref | sub("refs/tags/php-"; "")) + " " + .object.sha' "tags.json" \
3237
| grep -E "^${VERSION}\.[0-9]+ " \

0 commit comments

Comments
 (0)