txt file name not required
This commit is contained in:
parent
6627464583
commit
006ac980dc
@ -15,10 +15,10 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
txtFileContent:
|
||||
required: true
|
||||
required: false
|
||||
type: string
|
||||
txtFileName:
|
||||
required: true
|
||||
required: false
|
||||
type: string
|
||||
jobs:
|
||||
UploadFtp:
|
||||
@ -41,5 +41,7 @@ jobs:
|
||||
|
||||
curl -T ./$upload_name ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"
|
||||
|
||||
printf "%b" "${{ inputs.txtFileContent }}" > ${{ inputs.txtFileName }}
|
||||
curl -T ./${{ inputs.txtFileName }} ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"
|
||||
if [ "${{ inputs.txtFileName }}" != "" ]; then
|
||||
printf "%b" "${{ inputs.txtFileContent }}" > ${{ inputs.txtFileName }}
|
||||
curl -T ./${{ inputs.txtFileName }} ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user