artifact not required
This commit is contained in:
parent
f938b45fe8
commit
de2dfcf4e6
@ -12,10 +12,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
artifactName:
|
artifactName:
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
fileName:
|
fileName:
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
jobs:
|
jobs:
|
||||||
UpdateRelease:
|
UpdateRelease:
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
"$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/releases/$release_id")
|
"$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/releases/$release_id")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${{ inputs.artifactName }}" != "null" ]; then
|
||||||
artifact_file="./${{ inputs.fileName }}"
|
artifact_file="./${{ inputs.fileName }}"
|
||||||
artifact_name=$(basename "$artifact_file")
|
artifact_name=$(basename "$artifact_file")
|
||||||
|
|
||||||
@ -95,3 +95,4 @@ jobs:
|
|||||||
echo "Artifact file '$artifact_file' not found. Exiting."
|
echo "Artifact file '$artifact_file' not found. Exiting."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user