diff --git a/action.yml b/action.yml index 7a1823d..833ba66 100644 --- a/action.yml +++ b/action.yml @@ -36,17 +36,17 @@ inputs: runs: using: "composite" steps: - - name: Install action dependencies + - name: Install dependencies and run commit-check shell: bash run: | if [[ "$RUNNER_OS" == "Linux" ]]; then # https://github.com/pypa/setuptools/issues/3269 export DEB_PYTHON_INSTALL_LAYOUT=deb fi + python3 -m venv venv + source venv/bin/activate python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt" - - name: Run commit-check - shell: bash - run: python3 ${{ github.action_path }}/main.py + python3 "$GITHUB_ACTION_PATH/main.py" env: MESSAGE: ${{ inputs.message }} BRANCH: ${{ inputs.branch }}