move up cache date setting
This commit is contained in:
parent
9f4e61d822
commit
5833ac90eb
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -66,6 +66,11 @@ jobs:
|
|||||||
activate-environment: pypsa-eur
|
activate-environment: pypsa-eur
|
||||||
use-mamba: true
|
use-mamba: true
|
||||||
|
|
||||||
|
- name: Set cache dates
|
||||||
|
run: |
|
||||||
|
echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||||
|
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Cache data and cutouts folders
|
- name: Cache data and cutouts folders
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@ -74,11 +79,6 @@ jobs:
|
|||||||
cutouts
|
cutouts
|
||||||
key: data-cutouts-${{ env.WEEK }}-${{ env.DATA_CACHE_NUMBER }}
|
key: data-cutouts-${{ env.WEEK }}-${{ env.DATA_CACHE_NUMBER }}
|
||||||
|
|
||||||
- name: Set cache dates
|
|
||||||
run: |
|
|
||||||
echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
|
||||||
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Create environment cache
|
- name: Create environment cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
id: cache
|
id: cache
|
||||||
|
Loading…
Reference in New Issue
Block a user