From a41f7d8574e9711198dced02cf681dea102b80a5 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Mon, 1 Apr 2024 17:29:45 -0700 Subject: [PATCH] Only upload single artifact --- .github/workflows/_build.yml | 6 ++++++ .github/workflows/check.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index daf3a87..de63043 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -14,6 +14,11 @@ on: type: string required: false default: ubuntu-latest + upload_artifact: + description: Upload the built artifact. + type: string + required: false + default: 'false' outputs: artifact_name: description: The artifact name. @@ -35,6 +40,7 @@ jobs: run: make build - name: Upload artifact uses: actions/upload-artifact@v4 + if: inputs.upload_artifact == 'true' with: name: build-${{ github.sha }} if-no-files-found: error diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6cee1a7..0b2db09 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -65,6 +65,7 @@ jobs: with: python_version: ${{ matrix.python }} runs_on: ${{ matrix.os }} + upload_artifact: ${{ matrix.python == '3.11' && matrix.os == 'ubuntu-latest' }} strategy: fail-fast: false matrix: