Skip to content

Commit ead8752

Browse files
committed
feat(upload-statistics): add continue-on-error input for artifact upload
Allows workflows to proceed even if the artifact upload fails, enhancing flexibility for non-critical artifacts.
1 parent ef8894a commit ead8752

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/upload-statistics/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ inputs:
4545
description: "Compression level for the artifact (0-9, 6 is default)"
4646
required: false
4747
default: "6"
48+
continue-on-error:
49+
description: "Continue workflow if upload fails (for non-critical artifacts)"
50+
required: false
51+
default: "false"
4852

4953
runs:
5054
using: "composite"
@@ -54,6 +58,7 @@ runs:
5458
# --------------------------------------------------------------------
5559
- name: 📤 Upload ${{ inputs.artifact-name }}
5660
if: always() # Always run to capture data even on job failure
61+
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
5762
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5863
with:
5964
name: ${{ inputs.artifact-name }}

.github/workflows/fortress-completion-statistics.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ jobs:
632632
artifact-path: "statistics-section.md"
633633
retention-days: "1"
634634
if-no-files-found: "warn"
635+
continue-on-error: "true"
635636

636637
- name: 📋 Set Output Content
637638
id: set-output

0 commit comments

Comments
 (0)