File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ runs:
45
45
then
46
46
TARGET_URL="${{ inputs.hackageServer }}/packages/upload";
47
47
DOCS_URL="${{ inputs.hackageServer }}/package/$PACKAGE_NAME/docs"
48
+ HACKAGE_STATUS=$(curl --header "${HACKAGE_AUTH_HEADER}" --silent --head -w %{http_code} -XGET --anyauth ${{ inputs.hackageServer }}/package/${PACKAGE_NAME} -o /dev/null)
48
49
else
49
50
TARGET_URL="${{ inputs.hackageServer }}/packages/candidates";
50
51
DOCS_URL="${{ inputs.hackageServer }}/package/$PACKAGE_NAME/candidate/docs"
52
+ HACKAGE_STATUS=404
51
53
fi
52
54
53
- HACKAGE_STATUS=$(curl --header "${HACKAGE_AUTH_HEADER}" --silent --head -w %{http_code} -XGET --anyauth ${{ inputs.hackageServer }}/package/${PACKAGE_NAME} -o /dev/null)
54
-
55
55
if [ "$HACKAGE_STATUS" = "404" ]; then
56
56
echo "Uploading ${PACKAGE_NAME} to ${TARGET_URL}"
57
57
curl -X POST -f --header "${HACKAGE_AUTH_HEADER}" ${TARGET_URL} -F "package=@$PACKAGE_TARBALL"
You can’t perform that action at this time.
0 commit comments