1
0

skip string

This commit is contained in:
Marco Maatz 2024-10-24 12:03:31 +02:00
parent d2761d6981
commit f6e4ee92a3

View File

@ -43,8 +43,8 @@ jobs:
curl -T ./$upload_name ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}" curl -T ./$upload_name ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"
echo "Uploading finished $upload_name" echo "Uploading finished $upload_name"
echo "TXT Filename is ${{ inputs.txtFileName }}" echo "TXT Filename is '${{ inputs.txtFileName }}'"
if [ "${{ inputs.txtFileName }}" != "" ] && [ "${{ inputs.txtFileContent }}" != "" ]; then if [ "${{ inputs.txtFileName }}" != "skip" ]; then
echo "Uploading additional Text File ${{ inputs.txtFileName }}" echo "Uploading additional Text File ${{ inputs.txtFileName }}"
printf "%b" "${{ inputs.txtFileContent }}" > ${{ 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 }}" curl -T ./${{ inputs.txtFileName }} ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"