We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f671c commit 402df72Copy full SHA for 402df72
.github/workflows/gradle-publish.yml
@@ -70,7 +70,17 @@ jobs:
70
run: |
71
set -euo pipefail
72
73
- DEPLOY_ID=$(grep '^deploymentId=' build/jreleaser/output.properties | cut -d= -f2)
+ if [[ ! -f build/jreleaser/output.properties ]]; then
74
+ echo "::error title=File Missing::The file 'build/jreleaser/output.properties' does not exist."
75
+ exit 1
76
+ fi
77
+
78
+ DEPLOY_ID=$(grep '^deploymentId=' build/jreleaser/output.properties | cut -d= -f2 || true)
79
+ if [[ -z "$DEPLOY_ID" ]]; then
80
+ echo "::error title=Missing Deployment ID::The 'deploymentId' key was not found in 'build/jreleaser/output.properties'."
81
82
83
84
echo "Portal deploymentId: $DEPLOY_ID"
85
86
AUTH=$(printf "%s:%s" "$OSSRH_USERNAME" "$OSSRH_TOKEN" | base64)
0 commit comments