Skip to content

Commit 1ca662b

Browse files
authored
Avoid installer artifact uploads on PR builds
Skip large installer artifact uploads for pull request builds while preserving uploads for main, manual, and release-triggered runs. Set a short artifact retention window for non-PR uploads.
1 parent f734c57 commit 1ca662b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-installers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ jobs:
6868
run: python scripts/build_installers.py --platform ${{ matrix.platform }}
6969

7070
- name: Upload installer artifact
71+
if: github.event_name != 'pull_request'
7172
uses: actions/upload-artifact@v6
7273
with:
7374
name: ${{ inputs.artifact_prefix && format('{0}-{1}', inputs.artifact_prefix, matrix.artifact_name) || matrix.artifact_name }}
7475
path: ${{ matrix.artifact_path }}
7576
compression-level: 0
77+
retention-days: 7
7678
if-no-files-found: error

0 commit comments

Comments
 (0)