Skip to content

Commit 228461b

Browse files
committed
Attempt to use working-directory instead of -C <path>
1 parent 4a8b3fa commit 228461b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

analyze-project/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ runs:
2222
- name: Get project name and version
2323
id: get_project_info
2424
run: |
25-
result=$(poetry version -C "${{ inputs.project-directory }}")
25+
result=$(poetry version")
2626
name=$(echo "$result" | awk '{print $1}')
2727
version=$(echo "$result" | awk '{print $2}')
2828
echo "name=$name" >> $GITHUB_OUTPUT
2929
echo "version=$version" >> $GITHUB_OUTPUT
30-
project_path=$(poetry env info --path -C "${{ inputs.project-directory }}")
30+
project_path=$(poetry env info --path)
3131
echo "venv-path=$project_path" >> $GITHUB_OUTPUT
3232
shell: bash
33+
working-directory: ${{ inputs.project-directory }}
3334
- name: Check for lock changes
3435
run: poetry check --lock -C "${{ inputs.project-directory }}"
3536
shell: bash

0 commit comments

Comments
 (0)