Convert Icon Pack #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Resize and Rename Images | |
on: | |
workflow_dispatch: | |
inputs: | |
zip_file_url: | |
description: 'URL of the zip file containing images' | |
required: true | |
jobs: | |
resize: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pillow | |
- name: Download Zip File | |
run: | | |
curl -L ${{ github.event.inputs.zip_file_url }} -o images.zip | |
- name: Create Images Directory | |
run: mkdir images | |
- name: Extract Zip File to Images Directory | |
run: unzip images.zip -d images | |
- name: Run Python Script | |
run: python main.py images | |
- name: Archive Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: resized-images | |
path: images |