aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pr-review-companion.yml
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-07-27 16:03:02 -0400
committerGitHub <noreply@github.com>2021-07-27 16:03:02 -0400
commit28ab1f9f27c757b546f107137479bfc851c02c3c (patch)
treef54c04772b8ed1daf7bb6565433a26cfb26ae162 /.github/workflows/pr-review-companion.yml
parentbb22e9dddf7179a809408ad53e5a49488eedf3f1 (diff)
downloadtranslated-content-28ab1f9f27c757b546f107137479bfc851c02c3c.tar.gz
translated-content-28ab1f9f27c757b546f107137479bfc851c02c3c.tar.bz2
translated-content-28ab1f9f27c757b546f107137479bfc851c02c3c.zip
cache $HOME/.local for faster poetry installation (#1751)
Diffstat (limited to '.github/workflows/pr-review-companion.yml')
-rw-r--r--.github/workflows/pr-review-companion.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/pr-review-companion.yml b/.github/workflows/pr-review-companion.yml
index aaf799d499..2769dad66f 100644
--- a/.github/workflows/pr-review-companion.yml
+++ b/.github/workflows/pr-review-companion.yml
@@ -71,6 +71,13 @@ jobs:
with:
python-version: "3.8"
+ # See https://www.peterbe.com/plog/install-python-poetry-github-actions-faster
+ - name: Load cached ~/.local
+ uses: actions/cache@v2.1.6
+ with:
+ path: ~/.local
+ key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-review-companion.yml') }}
+
- name: Install Python poetry
uses: snok/install-poetry@v1.1.6
with: