File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 with :
3939 name : build-artifact-${{ matrix.php }}
4040 path : /tmp/github-actions
41+ retention-days : 1
4142
4243 phpunit :
4344 runs-on : ubuntu-latest
9394 run : cat "_coverage/coverage.txt"
9495
9596 - name : Upload to Codecov
96- uses : codecov/codecov-action@v5
97+ uses : codecov/codecov-action@v6
9798 with :
9899 token : ${{ secrets.CODECOV_TOKEN }}
99100
@@ -167,21 +168,3 @@ jobs:
167168 php_version : ${{ matrix.php }}
168169 path : src/
169170 standard : phpcs.xml
170-
171- remove_old_artifacts :
172- runs-on : ubuntu-latest
173-
174- permissions :
175- actions : write
176-
177- steps :
178- - name : Remove old artifacts for prior workflow runs on this repository
179- env :
180- GH_TOKEN : ${{ github.token }}
181- run : |
182- gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
183- while read id
184- do
185- echo -n "Deleting artifact ID $id ... "
186- gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
187- done <artifact-id-list.txt
You can’t perform that action at this time.
0 commit comments