From b7398a698987da849c6936867040ee05517e151e Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Thu, 25 Apr 2024 13:43:23 +0100 Subject: [PATCH] ci: name build artifact --- .github/workflows/ci.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4a2a51..6a3b652 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Upload build archive for test runners uses: actions/upload-artifact@v4 with: - name: build-artifact + name: build-artifact-${{ matrix.php }} path: /tmp/github-actions phpunit: @@ -45,7 +45,7 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: build-artifact + name: build-artifact-${{ matrix.php }} path: /tmp/github-actions - name: Extract build archive @@ -96,7 +96,7 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: build-artifact + name: build-artifact-${{ matrix.php }} path: /tmp/github-actions - name: Extract build archive @@ -119,7 +119,7 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: build-artifact + name: build-artifact-${{ matrix.php }} path: /tmp/github-actions - name: Extract build archive @@ -143,7 +143,7 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: build-artifact + name: build-artifact-${{ matrix.php }} path: /tmp/github-actions - name: Extract build archive @@ -156,17 +156,18 @@ jobs: path: src/ standard: phpcs.xml - remove_old_artifacts: - runs-on: ubuntu-latest - - steps: - - name: Remove old artifacts for prior workflow runs on this repository - env: - GH_TOKEN: ${{ github.token }} - run: | - gh api "/repos/${{ github.repository }}/actions/artifacts?name=build-artifact" | jq ".artifacts[] | select(.name == \"build-artifact\") | .id" > artifact-id-list.txt - while read id - do - echo -n "Deleting artifact ID $id ... " - gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done" - done artifact-id-list.txt +# while read id +# do +# echo -n "Deleting artifact ID $id ... " +# gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done" +# done