Skip to content

Commit

Permalink
Fix process runner for PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Jan 2, 2025
1 parent 42bba54 commit fc5f044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual_api_cache_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
python scripts/set_default_settings.py
echo "Building Cache"
python source/main.py --build-cache &
MAIN_PID=$!
$MAIN_PID = $($pid = Get-Process python | Select-Object -First 1).Id
sleep 240
echo "Killing main.py"
kill $MAIN_PID
Stop-Process -Id $MAIN_PID
echo "Updating Cache API files"
python scripts/update_cache_api.py
- name: Commit Changes
Expand Down

0 comments on commit fc5f044

Please sign in to comment.