artifact not required
This commit is contained in:
parent
f938b45fe8
commit
de2dfcf4e6
@ -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
|
Loading…
Reference in New Issue
Block a user