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