Skip to content

Commit

Permalink
fix: output_dir: command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
pysio2007 committed Nov 6, 2024
1 parent d643a10 commit a3f53ca
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/convert_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,17 @@ jobs:
- name: Generate url.csv
run: |
output_dir = 'output'
base_url = 'https://randomimg.pysio.online/output/'
with open('url.csv', 'w') as f:
for filename in os.listdir(output_dir):
if filename == 'NULL':
continue
if filename.lower().endswith('webp'):
f.write(f'{base_url}{filename}\n')
base_url='https://randomimg.pysio.online/output/'
output_dir='output'
> url.csv
for filename in $(ls $output_dir); do
if [ "$filename" == "NULL" ]; then
continue
fi
if [[ $filename == *.webp ]]; then
echo "${base_url}${filename}" >> url.csv
fi
done
- name: Commit and push changes
env:
Expand Down

0 comments on commit a3f53ca

Please sign in to comment.