Skip to content

Commit 6ef58ce

Browse files
committed
ci: skip setup Poetry step if a cache is found
1 parent 4b7f3dd commit 6ef58ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
echo "local_venvs=$(pipx environment -v PIPX_LOCAL_VENVS)" >> $GITHUB_OUTPUT
2929
3030
- name: Cache Poetry
31+
id: cache_poetry
3132
uses: actions/cache@v3.3.1
3233
with:
3334
path: |
@@ -36,6 +37,7 @@ jobs:
3637
key: poetry-${{ runner.os }}-${{ hashFiles('.github/workflows/build.yaml') }}
3738

3839
- name: Setup Poetry
40+
if: !steps.cache_poetry.outputs.cache-hit
3941
run: pipx install poetry
4042

4143
- name: Install deps

0 commit comments

Comments
 (0)