66
77permissions :
88 contents : read
9+ actions : read
910
1011jobs :
1112 composer :
1213 runs-on : ubuntu-latest
1314 strategy :
1415 matrix :
15- php : [ 8.2, 8. 3, 8.4, 8.5 ]
16+ php : [ 8.3, 8.4, 8.5 ]
1617
1718 steps :
1819 - uses : actions/checkout@v6
@@ -37,13 +38,14 @@ jobs:
3738 with :
3839 name : build-artifact-${{ matrix.php }}
3940 path : /tmp/github-actions
41+ retention-days : 1
4042
4143 phpstan :
4244 runs-on : ubuntu-latest
4345 needs : [ composer ]
4446 strategy :
4547 matrix :
46- php : [ 8.2, 8. 3, 8.4, 8.5 ]
48+ php : [ 8.3, 8.4, 8.5 ]
4749
4850 steps :
4951 - uses : actions/download-artifact@v4
6769 needs : [ composer ]
6870 strategy :
6971 matrix :
70- php : [ 8.2, 8. 3, 8.4, 8.5 ]
72+ php : [ 8.3, 8.4, 8.5 ]
7173
7274 steps :
7375 - uses : actions/download-artifact@v4
9193 needs : [ composer ]
9294 strategy :
9395 matrix :
94- php : [ 8.2, 8. 3, 8.4, 8.5 ]
96+ php : [ 8.3, 8.4, 8.5 ]
9597
9698 steps :
9799 - uses : actions/download-artifact@v4
@@ -108,21 +110,3 @@ jobs:
108110 php_version : ${{ matrix.php }}
109111 path : src/
110112 standard : phpcs.xml
111-
112- remove_old_artifacts :
113- runs-on : ubuntu-latest
114-
115- permissions :
116- actions : write
117-
118- steps :
119- - name : Remove old artifacts for prior workflow runs on this repository
120- env :
121- GH_TOKEN : ${{ github.token }}
122- run : |
123- gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
124- while read id
125- do
126- echo -n "Deleting artifact ID $id ... "
127- gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
128- done <artifact-id-list.txt
0 commit comments