diff --git a/.gitea/workflows/uploadArtifactWithFtp.yaml b/.gitea/workflows/uploadArtifactWithFtp.yaml index 667d1c9..a8fb46c 100644 --- a/.gitea/workflows/uploadArtifactWithFtp.yaml +++ b/.gitea/workflows/uploadArtifactWithFtp.yaml @@ -44,10 +44,12 @@ jobs: echo "Uploading finished $upload_name" echo "TXT Filename is ${{ inputs.txtFileName }}" - if [ -n "${{ inputs.txtFileName }}"]; then + if [ -n "${{ inputs.txtFileName }}" ] && [ -n "${{ inputs.txtFileContent }}" ]; then echo "Uploading additional Text File ${{ inputs.txtFileName }}" printf "%b" "${{ inputs.txtFileContent }}" > ${{ inputs.txtFileName }} curl -T ./${{ inputs.txtFileName }} ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}" + else + echo "No additional text file to upload." fi echo "Ftp Upload done" \ No newline at end of file