fix: Trusted CI failing in forks

This commit fixes issue that due to the lack of private and private key in forks, the Trusted CI ends up failing.
This commit is contained in:
ThePedroo
2025-06-09 22:59:44 -03:00
parent 4f35e06ac4
commit c786790b0f

View File

@@ -28,8 +28,12 @@ jobs:
private_key: ${{ secrets.ORG_PRIVATE_KEY }}
public_key: ${{ secrets.ORG_PUBLIC_KEY }}
run: |
echo "$private_key" | base64 -d > module/private_key
echo "$public_key" | base64 -d > module/public_key
if [ -z "$private_key" ] || [ -z "$public_key" ]; then
echo "Private or public key is not set."
else
echo "$private_key" | base64 -d > module/private_key
echo "$public_key" | base64 -d > module/public_key
fi
- name: Build with Gradle
run: |