Skip to content

Commit a41f7d8

Browse files
committed
Only upload single artifact
1 parent 1effc67 commit a41f7d8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/_build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
type: string
1515
required: false
1616
default: ubuntu-latest
17+
upload_artifact:
18+
description: Upload the built artifact.
19+
type: string
20+
required: false
21+
default: 'false'
1722
outputs:
1823
artifact_name:
1924
description: The artifact name.
@@ -35,6 +40,7 @@ jobs:
3540
run: make build
3641
- name: Upload artifact
3742
uses: actions/upload-artifact@v4
43+
if: inputs.upload_artifact == 'true'
3844
with:
3945
name: build-${{ github.sha }}
4046
if-no-files-found: error

.github/workflows/check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
with:
6666
python_version: ${{ matrix.python }}
6767
runs_on: ${{ matrix.os }}
68+
upload_artifact: ${{ matrix.python == '3.11' && matrix.os == 'ubuntu-latest' }}
6869
strategy:
6970
fail-fast: false
7071
matrix:

0 commit comments

Comments
 (0)