From f6e4ee92a303958457796363dc33457fff0099ac Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Thu, 24 Oct 2024 12:03:31 +0200 Subject: [PATCH] skip string --- .gitea/workflows/uploadArtifactWithFtp.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/uploadArtifactWithFtp.yaml b/.gitea/workflows/uploadArtifactWithFtp.yaml index 48898e3..7a13f94 100644 --- a/.gitea/workflows/uploadArtifactWithFtp.yaml +++ b/.gitea/workflows/uploadArtifactWithFtp.yaml @@ -43,8 +43,8 @@ jobs: curl -T ./$upload_name ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}" echo "Uploading finished $upload_name" - echo "TXT Filename is ${{ inputs.txtFileName }}" - if [ "${{ inputs.txtFileName }}" != "" ] && [ "${{ inputs.txtFileContent }}" != "" ]; then + echo "TXT Filename is '${{ inputs.txtFileName }}'" + if [ "${{ inputs.txtFileName }}" != "skip" ]; 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 }}"