change condition
This commit is contained in:
parent
b1259df25e
commit
eb9c425d7c
@ -33,7 +33,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
upload_name=${{ inputs.fileName }}
|
upload_name=${{ inputs.fileName }}
|
||||||
|
|
||||||
if [ "${{ inputs.uploadName }}" != "" ]; then
|
if [ -n "${{ inputs.uploadName }}"]; then
|
||||||
echo "Renaming file to ${{ inputs.uploadName }}"
|
echo "Renaming file to ${{ inputs.uploadName }}"
|
||||||
mv ${{ inputs.fileName }} ${{ inputs.uploadName }}
|
mv ${{ inputs.fileName }} ${{ inputs.uploadName }}
|
||||||
upload_name=${{ inputs.uploadName }}
|
upload_name=${{ inputs.uploadName }}
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
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 }}" != "" ]; then
|
if [ -n "${{ inputs.txtFileName }}"]; 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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user