Skip to content

Commit

Permalink
Make Imgur upload step optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Jan 4, 2025
1 parent 20cb316 commit 2050a5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ jobs:

- name: Create test screenshot gallery
if: ${{ env.IMGUR_CLIENT_ID && (success() || failure()) }}
shell: bash
# Imgur uploads randomly fail sometimes, probably because of the low rate limit.
# TODO: Find a better place to upload the screenshots.
continue-on-error: true
run: |
echo "<details open>" >> $GITHUB_STEP_SUMMARY
echo "<summary>📸 Test Screenshots</summary>" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -143,6 +145,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
else
echo "Failed to upload $filename" >> $GITHUB_STEP_SUMMARY
echo "Imgur upload response for $filename: $response"
fi
fi
done
Expand Down

0 comments on commit 2050a5a

Please sign in to comment.