fix: avoid process substitution in Bunny upload workflow
cdf9f8f parent: 91e3df9 modified
.rickub/workflows/deploy-bunny.yml +2 -2 | @@ -92,7 +92,7 @@ jobs: | ||
| 92 | 92 | run: | |
| 93 | 93 | set -euo pipefail |
| 94 | 94 | |
| 95 | - while IFS= read -r -d '' file; do | |
| 95 | + find out -type f -print0 | while IFS= read -r -d '' file; do | |
| 96 | 96 | relative_path="${file#out/}" |
| 97 | 97 | mime_type="$(file --brief --mime-type "$file")" |
| 98 | 98 | |
| @@ -103,7 +103,7 @@ jobs: | ||
| 103 | 103 | --header "Content-Type: $mime_type" \ |
| 104 | 104 | --upload-file "$file" \ |
| 105 | 105 | "$BUNNY_STORAGE_ENDPOINT/$relative_path" |
| 106 | - done < <(find out -type f -print0) | |
| 106 | + done | |
| 107 | 107 | |
| 108 | 108 | - name: Purge Bunny CDN cache |
| 109 | 109 | env: |
| @@ -92,7 +92,7 @@ jobs: | |||
| 92 | run: | | 92 | run: | |
| 93 | set -euo pipefail | 93 | set -euo pipefail |
| 94 | 94 | ||
| 95 | - while IFS= read -r -d '' file; do | 95 | + find out -type f -print0 | while IFS= read -r -d '' file; do |
| 96 | relative_path="${file#out/}" | 96 | relative_path="${file#out/}" |
| 97 | mime_type="$(file --brief --mime-type "$file")" | 97 | mime_type="$(file --brief --mime-type "$file")" |
| 98 | 98 | ||
| @@ -103,7 +103,7 @@ jobs: | |||
| 103 | --header "Content-Type: $mime_type" \ | 103 | --header "Content-Type: $mime_type" \ |
| 104 | --upload-file "$file" \ | 104 | --upload-file "$file" \ |
| 105 | "$BUNNY_STORAGE_ENDPOINT/$relative_path" | 105 | "$BUNNY_STORAGE_ENDPOINT/$relative_path" |
| 106 | - done < <(find out -type f -print0) | 106 | + done |
| 107 | 107 | ||
| 108 | - name: Purge Bunny CDN cache | 108 | - name: Purge Bunny CDN cache |
| 109 | env: | 109 | env: |