uses readme as a hash for the cache key

This commit is contained in:
Stephen Hawes
2023-06-12 09:36:52 -04:00
parent c815ba7648
commit c55cf89237

View File

@@ -123,7 +123,7 @@ jobs:
- uses: actions/cache@v3
with:
path: pcb-images/ # Note that this path is not influenced by working-directory set in defaults, for example
key: ${{ runner.os }}-build-${{ env.cache-name }}
key: ${{ runner.os }}-${{ hashFiles('README.md') }}
generate-bom:
name: Generate BOM
@@ -214,7 +214,13 @@ jobs:
- uses: actions/cache@v3
with:
path: pcb-images
key: ${{ runner.os }}-build-${{ env.cache-name }}
key: ${{ runner.os }}-${{ hashFiles('README.md') }}
- name: What Did We download?
run: |
ls -al
ls -al pcb-images/
# - name: Download PCB Images
# if: github.event_name != 'release'
@@ -223,6 +229,8 @@ jobs:
# name: pcb-images
# path: pcb-images/
- name: Move PCB Images for Workflow Dispatch
if: github.event_name != 'release'
run: |