Add CACHE_STRING secret to bust GitHub Actions python cache (#1344)

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

* Quick change

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
Micah Jerome Ellison 2021-09-25 11:11:28 -07:00 committed by GitHub
parent 9f16cc42f5
commit 4c0fb344d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }}-${{ secrets.CACHE_STRING }}
- name: Install dependencies - name: Install dependencies
if: ${{ matrix.python-version != '3.10-dev' }} if: ${{ matrix.python-version != '3.10-dev' }}