From 837740309ffbc47f340534ed9fd163d2ee4c1495 Mon Sep 17 00:00:00 2001 From: Kwankyu Lee Date: Mon, 18 Nov 2024 23:02:58 +0900 Subject: [PATCH] Do not upload logs artifact for the default job --- .github/workflows/ci-linux.yml | 1 + .github/workflows/docker.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index ca4607e3cc3..1bf8862b4f4 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -50,6 +50,7 @@ jobs: tox_packages_factors: >- ["standard"] docker_push_repository: ghcr.io/${{ github.repository }}/ + logs_artifact: false # All platforms. This duplicates the default platform, but why not, # it makes it more robust regarding random timeouts. diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a7d5ecc8835..96427164eae 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -85,6 +85,9 @@ on: description: 'Elapsed time (seconds) at which to kill the build' default: 20000 type: number + logs_artifact: + default: true + type: boolean # # Publishing to GitHub Packages # @@ -260,11 +263,12 @@ jobs: cp -r .tox/$TOX_ENV/* "artifacts/$LOGS_ARTIFACT_NAME" rm -rf "artifacts/$LOGS_ARTIFACT_NAME"/{bin,lib,pyvenv.cfg} if: always() - - uses: actions/upload-artifact@v4 + - name: Upload logs artifact + uses: actions/upload-artifact@v4 with: path: artifacts name: ${{ env.LOGS_ARTIFACT_NAME }} - if: always() + if: always() && inputs.logs_artifact - name: Print out logs for immediate inspection # and markup the output with GitHub Actions logging commands run: |