infra: actions: cache git repo
Some checks failed
Some checks failed
This commit is contained in:
@@ -7,11 +7,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Restore git cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .git
|
||||
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
- name: Check for changes before building
|
||||
id: image-changes
|
||||
# build image only if 1. changes are detected or 2. an image for the working branch doesnt exist
|
||||
|
||||
Reference in New Issue
Block a user