Skip to content

Commit 04e2f46

Browse files
author
Nejc
authored
fix: added working_dir
2 parents 021220d + a5aa1fd commit 04e2f46

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,18 @@ runs:
9595
enable-cache: true
9696
cache-dependency-glob: "**/uv.lock"
9797

98-
- run: echo ${{ github.action_path }}
98+
- name: 📁 Working directory
99+
run: cd ${{github.action_path}}
99100
shell: bash
100101

101102
- name: 💿 Install python
102103
uses: actions/setup-python@v5
103104
with:
104-
python-version-file: "${{ github.action_path }}/pyproject.toml"
105+
python-version-file: "pyproject.toml"
105106

106107
- name: 🦺 Install python packages
107108
shell: bash
108-
run: uv sync --all-extras --dev --directory '${{ github.action_path }}'
109+
run: uv sync --all-extras --dev
109110

110111
- name: 🤖 Run
111112
id: summary
@@ -118,7 +119,7 @@ runs:
118119
if [ ! -z "${{ inputs.file }}" ] && [ -f "${{ inputs.file }}" ]; then
119120
export DATA=$(cat "${{ inputs.file }}")
120121
fi
121-
uv run ${{ github.action_path }}/src/main.py
122+
uv run src/main.py
122123
shell: bash
123124
env:
124125
OPENAI_KEY: ${{ inputs.openAiKey }}

0 commit comments

Comments
 (0)