Skip to content

Commit

Permalink
try without trim
Browse files Browse the repository at this point in the history
  • Loading branch information
robbymilo committed Nov 28, 2024
1 parent f495584 commit c40453d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ jobs:
if: github.event.action == 'opened' || github.event.action == 'synchronize'
shell: bash
run: |
trimmed_value=$(echo "${{ inputs.source_directory }}" | cut -d'/' -f1)
find . -mindepth 1 -not \( -path "./$trimmed_value" -o -path "./$trimmed_value/*" -o -path "./deploy-preview-files" -o -path "./deploy-preview-files/*" \) -exec rm -rf {} +
find . -mindepth 1 -not \( -path "./${{ inputs.source_directory }}" -o -path "./${{ inputs.source_directory }}/*" -o -path "./deploy-preview-files" -o -path "./deploy-preview-files/*" \) -exec rm -rf {} +
ls -al
ls -al $trimmed_value
Expand Down

0 comments on commit c40453d

Please sign in to comment.