1
0

artifact not required

This commit is contained in:
Marco Maatz 2024-10-18 14:57:44 +02:00
parent f938b45fe8
commit de2dfcf4e6

View File

@ -12,10 +12,10 @@ on:
required: true
type: string
artifactName:
required: true
required: false
type: string
fileName:
required: true
required: false
type: string
jobs:
UpdateRelease:
@ -68,7 +68,7 @@ jobs:
"$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/releases/$release_id")
fi
if [ "${{ inputs.artifactName }}" != "null" ]; then
artifact_file="./${{ inputs.fileName }}"
artifact_name=$(basename "$artifact_file")
@ -95,3 +95,4 @@ jobs:
echo "Artifact file '$artifact_file' not found. Exiting."
exit 0
fi
fi