Skip to content

Commit

Permalink
GHA: add cache to PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Mar 13, 2024
1 parent 66b9b12 commit b8a6d20
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
with:
ref: refs/pull/${{ github.event.inputs.pr_number }}/merge

- name: Generate Cache ID
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- name: Setup Cache
uses: actions/cache@v4
with:
key: docs-${{ env.cache_id }}
path: .cache
restore-keys: |
docs-
- name: Setup Python 3
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit b8a6d20

Please sign in to comment.