From 3f81cc51f8342016dc6f10c6912494fe35dc452b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Thu, 6 Jun 2024 16:31:52 +0200 Subject: [PATCH] Use venv? --- action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index f96aef4..cb32cdb 100644 --- a/action.yml +++ b/action.yml @@ -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 }} @@ -102,5 +99,9 @@ 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 ./diffuse-venv + source ./diffuse-venv/bin/activate + python3 -m pip install requests + python3 "$GITHUB_ACTION_PATH"/entrypoint.py shell: bash