Skip to content

Commit

Permalink
Activate.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Jun 28, 2024
1 parent 89302e6 commit 31501f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ runs:
shell: powershell
run: |
conda env create -f ${{ inputs.conda_env_file }}
conda activate comfyui
- name: "[Win] Check conda environment"
if: ${{ inputs.os == 'windows' }}
Expand All @@ -228,6 +227,7 @@ runs:
if: ${{ inputs.os == 'windows' }}
id: generate_hash_windows
run: |
conda activate comfyui
Set-Location ${{ env.GITHUB_ACTION_PATH }}
$hash = python3 hash_string.py '${{ inputs.models-json }}'
echo "##[set-output name=hash;]$hash"
Expand Down Expand Up @@ -255,6 +255,7 @@ runs:
shell: powershell
run: |
Set-Location ${{ env.GITHUB_ACTION_PATH }}
conda activate comfyui
python download-models.py raw "${{ inputs.models-json }}" "${{ env.GITHUB_WORKSPACE }}\models\"
- name: '[Win] Run Python application'
Expand All @@ -271,6 +272,7 @@ runs:
if: ${{ inputs.os == 'windows' }}
run: |
cd $Env:GITHUB_ACTION_PATH
conda activate comfyui
python poll_server_start.py
shell: powershell

Expand All @@ -292,6 +294,7 @@ runs:
shell: powershell
run: |
Set-Location ${{ env.GITHUB_ACTION_PATH }}
conda activate comfyui
Write-Host "Running workflows: ${{ inputs.workflow_filenames }}"
python queue_prompt.py `
--comfy-workflow-names "${{ inputs.workflow_filenames }}" `
Expand Down

0 comments on commit 31501f1

Please sign in to comment.