Skip to content

Commit 8377403

Browse files
committed
Do not upload logs artifact for the default job
1 parent 39ebbe4 commit 8377403

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
tox_packages_factors: >-
5151
["standard"]
5252
docker_push_repository: ghcr.io/${{ github.repository }}/
53+
logs_artifact: false
5354

5455
# All platforms. This duplicates the default platform, but why not,
5556
# it makes it more robust regarding random timeouts.

.github/workflows/docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ on:
8585
description: 'Elapsed time (seconds) at which to kill the build'
8686
default: 20000
8787
type: number
88+
logs_artifact:
89+
default: true
90+
type: boolean
8891
#
8992
# Publishing to GitHub Packages
9093
#
@@ -260,11 +263,12 @@ jobs:
260263
cp -r .tox/$TOX_ENV/* "artifacts/$LOGS_ARTIFACT_NAME"
261264
rm -rf "artifacts/$LOGS_ARTIFACT_NAME"/{bin,lib,pyvenv.cfg}
262265
if: always()
263-
- uses: actions/upload-artifact@v4
266+
- name: Upload logs artifact
267+
uses: actions/upload-artifact@v4
264268
with:
265269
path: artifacts
266270
name: ${{ env.LOGS_ARTIFACT_NAME }}
267-
if: always()
271+
if: always() && inputs.logs_artifact
268272
- name: Print out logs for immediate inspection
269273
# and markup the output with GitHub Actions logging commands
270274
run: |

0 commit comments

Comments
 (0)