From 071baf8678bee52175bc05f24f9310da75e7882a Mon Sep 17 00:00:00 2001 From: Yezzi Hsueh Date: Thu, 22 Feb 2024 22:11:24 +0800 Subject: [PATCH] fix: cache key --- .gitea/workflows/cron.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cron.yml b/.gitea/workflows/cron.yml index 1198d36..1c0990b 100644 --- a/.gitea/workflows/cron.yml +++ b/.gitea/workflows/cron.yml @@ -11,8 +11,11 @@ jobs: uses: actions/checkout@v4 - name: Cache Creates uses: actions/cache@v3 + env: + cache-name: cache-create with: - path: /root/.cargo/registry + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} + path: ~/.cargo - name: Setup Cargo uses: actions-rs/toolchain@v1 with: