Skip to content

Commit 72115a0

Browse files
committed
fix: make screenshot upload optional when IMGBB_API_KEY is unavailable (for forks)
1 parent e2c1c80 commit 72115a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/post-maestro-screenshot/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
default: 'unknown'
1515
imgbb-api-key:
1616
description: 'ImgBB API key for image hosting'
17-
required: true
17+
required: false
1818

1919
runs:
2020
using: 'composite'
@@ -69,7 +69,7 @@ runs:
6969
fi
7070
7171
- name: Upload screenshot to ImgBB
72-
if: steps.check-screenshot.outputs.exists == 'true' && github.event_name == 'pull_request'
72+
if: steps.check-screenshot.outputs.exists == 'true' && github.event_name == 'pull_request' && inputs.imgbb-api-key != ''
7373
id: upload-screenshot
7474
uses: McCzarny/upload-image@v2.0.0
7575
with:

0 commit comments

Comments
 (0)