File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,18 @@ jobs:
20
20
id : supported_versions
21
21
run : |
22
22
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
+
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 }}
23
30
- name : Determine version and hash
31
+ env :
32
+ PHP_TAGS : ${{ steps.get_tags.outputs.data }}
24
33
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"
30
35
jq -r '.[]' "versions.json" | while read VERSION; do
31
36
jq -r '.[] | (.ref | sub("refs/tags/php-"; "")) + " " + .object.sha' "tags.json" \
32
37
| grep -E "^${VERSION}\.[0-9]+ " \
You can’t perform that action at this time.
0 commit comments