Add CACHE_STRING secret to allow maintainers to bust cache without a commit

This commit is contained in:
Micah Jerome Ellison 2021-09-18 14:12:25 -07:00
parent b932cfc9ad
commit af6d94c584

View file

@ -45,11 +45,11 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: poetry cache - name: poetry cache # Change CACHE_STRING secret to bust the cache. Useful with minor Python version changes.
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: .venv path: .venv
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}-v2 key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}-v2-${{ secrets.CACHE_STRING }}
- name: Install dependencies - name: Install dependencies
if: ${{ matrix.python-version != '3.10-dev' }} if: ${{ matrix.python-version != '3.10-dev' }}