Skip to content

Commit

Permalink
Only upload single artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Apr 2, 2024
1 parent 1effc67 commit a41f7d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a41f7d8

Please sign in to comment.