We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e4371 commit 7f218b4Copy full SHA for 7f218b4
1 file changed
github-action-build.sh
@@ -81,8 +81,13 @@ EOL
81
echo "Output of failed attempt follows:"
82
echo "$ciURL"
83
else
84
+ ciRepo=${ciURL##*/}
85
+ ciPrefix=${ciURL%/*}
86
+ ciOrg=${ciPrefix##*/}
87
if [ ! "$SIGNING_ASC" ] || [ ! "$GPG_KEY_NAME" ] || [ ! "$GPG_PASSPHRASE" ] || [ ! "$MAVEN_PASS" ] || [ ! "$OSSRH_PASS" ]; then
88
echo "No deploy -- secure environment variables not available"
89
+ elif [ "${GITHUB_REPOSITORY}" != "$ciOrg/$ciRepo" ]; then
90
+ echo "No deploy -- repository fork: ${GITHUB_REPOSITORY} != $ciOrg/$ciRepo"
91
92
echo "All checks passed for artifact deployment"
93
deployOK=1
0 commit comments