test github...

This commit is contained in:
Chl 2024-08-30 23:33:39 +02:00
parent d98f343cfa
commit c907ab522a

View file

@ -106,7 +106,7 @@ runs:
)" )"
# Store the outputs # Store the outputs
ARTIFACT_ID="$( echo "$RESPONSE" | sed -n 's/.*"artifactId" *: *"\([^"]\+\)".*/\1/p' )" ARTIFACT_ID="$( echo "$RESPONSE" | sed -n 's/.*"artifact_\?Id" *: *"\([^"]\+\)".*/\1/ip' )"
echo artifact-id="$ARTIFACT_ID" >> $GITHUB_OUTPUT echo artifact-id="$ARTIFACT_ID" >> $GITHUB_OUTPUT
if [ "$GITHUB_SERVER_URL" = "https://github.com" ]; then if [ "$GITHUB_SERVER_URL" = "https://github.com" ]; then
echo artifact-url="$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY"/actions/runs/"$GITHUB_RUN_ID"/artifacts/"$ARTIFACT_ID" >> $GITHUB_OUTPUT echo artifact-url="$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY"/actions/runs/"$GITHUB_RUN_ID"/artifacts/"$ARTIFACT_ID" >> $GITHUB_OUTPUT
@ -116,6 +116,6 @@ runs:
fi fi
# Cleanup # Cleanup
if [ "${{ inputs.compression }}" == "true" ]; then if [ "${{ inputs.compression }}" = "true" ]; then
rm -f "$MYUPLOAD" rm -f "$MYUPLOAD"
fi fi