From b1c75f44b633b7920df3f5db732ca78700e202e5 Mon Sep 17 00:00:00 2001 From: Logicer Date: Fri, 20 Dec 2024 18:08:26 +1100 Subject: [PATCH] Retain all build artifacts Free for public repos --- .github/workflows/build.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e4b3af..fea5e5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,26 +57,3 @@ jobs: if: ${{ matrix.xcode-select == 'xcode' && matrix.version == 15 }} with: subject-path: ${{ env.outPath }} - - - name: Purge old artifacts - uses: actions/github-script@v4 - if: ${{ matrix.xcode-select == 'xcode' && matrix.version == 15 && github.event_name != 'pull_request' }} - with: - script: | - const { owner, repo } = context.issue - - const res = await github.rest.actions.listArtifactsForRepo({ - owner, - repo, - }) - - res.data.artifacts - .filter(({ name }) => name === 'pam-watchid.so.${{ steps.getVersion.outputs.version }}') - .sort((a, b) => a.workflow_run.id - b.workflow_run.id).slice(0, -1) - .forEach(({ id }) => { - github.rest.actions.deleteArtifact({ - owner, - repo, - artifact_id: id, - }) - })