GitHub Action : Use year, month, and day as cache timestamp key

Original example for timestamp included hour, minute and second to build up cache key.
This commit is contained in:
Magne Sjaastad 2020-05-19 13:04:19 +02:00
parent b4defbf19b
commit d72e6e40f7

View File

@ -66,7 +66,7 @@ jobs:
id: cache_timestamp_string
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
string(TIMESTAMP current_date "%Y-%m-%d" UTC)
message("::set-output name=timestamp::${current_date}")
- name: Cache Buildcache
id: cache-buildcache