From e0107238b171d8aa6ddb1d889b2be048e1675b13 Mon Sep 17 00:00:00 2001 From: Marvin <272077995@qq.com> Date: Thu, 8 Dec 2022 22:58:41 +0800 Subject: [PATCH] docs: update cache example Skip the whole Poetry installation step when cache hit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f00084c3..6a4012cb 100644 --- a/README.md +++ b/README.md @@ -488,11 +488,13 @@ jobs: with: python-version: '3.10' - name: Load cached Poetry installation + id: cached-poetry uses: actions/cache@v3 with: path: ~/.local # the path depends on the OS key: poetry-0 # increment to reset cache - name: Install Poetry + if: steps.cached-poetry.outputs.cache-hit != 'true' uses: snok/install-poetry@v1 ```