Skip to content

Commit

Permalink
Use venv
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jun 6, 2024
1 parent bae5ca2 commit 146735b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ branding:
runs:
using: 'composite'
steps:
- run: python3 -m pip install requests
shell: bash

- id: run-diffuse
env:
INPUT_OLD_FILE: ${{ inputs.old-file-path }}
Expand All @@ -102,5 +99,13 @@ runs:
INPUT_DIFFUSE_REPO: ${{ inputs.diffuse-repo }}
INPUT_DEBUG: ${{ inputs.debug }}
INPUT_GITHUB_TOKEN: ${{ github.token }}
run: python3 "$GITHUB_ACTION_PATH"/entrypoint.py
run: |
python3 -m venv "$GITHUB_ACTION_PATH"/diffuse-venv
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then
source "$GITHUB_ACTION_PATH"/diffuse-venv/Scripts/activate
else
source "$GITHUB_ACTION_PATH"/diffuse-venv/bin/activate
fi
python3 -m pip install requests
python3 "$GITHUB_ACTION_PATH"/entrypoint.py
shell: bash

0 comments on commit 146735b

Please sign in to comment.