Skip to content

Commit

Permalink
build: append event name to cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax authored Oct 2, 2020
1 parent d1ed703 commit ef4ed9c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request_target:
Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
uses: actions/[email protected]
with:
path: ${{ env.pip-cache }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/poetry.lock') }}-${{ github.event_name }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/poetry.lock') }}
${{ runner.os }}-${{ matrix.python-version }}-pip
Expand All @@ -52,10 +53,7 @@ jobs:
uses: actions/[email protected]
with:
path: ${{ env.poetry-cache }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ env.poetry-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ env.poetry-version }}-${{ hashFiles('**/poetry.lock') }}
${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ env.poetry-version }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ env.poetry-version }}-${{ hashFiles('**/poetry.lock') }}-${{ github.event_name }}
- name: installing dependencies
run: poetry install -n -vv --no-ansi
- name: running tests
Expand Down

0 comments on commit ef4ed9c

Please sign in to comment.