Skip to content

Commit 26d8e37

Browse files
committed
Gate diagnostic artifact uploads
1 parent 4a87098 commit 26d8e37

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ on:
1313
options:
1414
- direct
1515
- proxy
16+
upload_debug_artifacts:
17+
description: 'Upload redacted diagnostics on failure for this manual run'
18+
required: true
19+
default: 'false'
20+
type: choice
21+
options:
22+
- 'false'
23+
- 'true'
1624

1725
permissions:
1826
contents: write
@@ -71,15 +79,14 @@ jobs:
7179
GCP_SECRET_ID: ${{ vars.GCP_SECRET_ID }}
7280
SCHWAB_REDIRECT_URI: ${{ vars.SCHWAB_REDIRECT_URI }}
7381

74-
- name: Upload Error Screenshot
75-
if: failure()
82+
- name: Upload Redacted Diagnostics
83+
if: failure() && github.event_name == 'workflow_dispatch' && inputs.upload_debug_artifacts == 'true'
7684
uses: actions/upload-artifact@v7
7785
with:
78-
name: debug-screenshots
86+
name: redacted-diagnostics
7987
path: |
80-
*.png
8188
*_diagnostics.json
82-
retention-days: 3
89+
retention-days: 1
8390

8491
- name: Update Log (Bash Version)
8592
if: success()

0 commit comments

Comments
 (0)