Skip to content

Commit

Permalink
Allow commits with /nocache to not use the cache (#2909)
Browse files Browse the repository at this point in the history
* Allow commits to not use the CI Cache if /nocache is used in the commit message
  • Loading branch information
tomaarsen committed Dec 10, 2021
1 parent d6d513d commit c075dab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: actions/checkout@v2

- name: Cache nltk data
if: ${{ !contains(github.event.head_commit.message, '/nocache') }}
uses: actions/cache@v2
id: restore-cache
with:
Expand All @@ -59,6 +60,7 @@ jobs:
uses: actions/checkout@v2

- name: Cache third party tools
if: ${{ !contains(github.event.head_commit.message, '/nocache') }}
uses: actions/cache@v2
id: restore-cache
with:
Expand Down Expand Up @@ -96,6 +98,7 @@ jobs:
if: runner.os == 'Linux'

- name: Cache dependencies
if: ${{ !contains(github.event.head_commit.message, '/nocache') }}
uses: actions/cache@v2
id: restore-cache
with:
Expand Down

0 comments on commit c075dab

Please sign in to comment.