diff --git a/.gitea/workflows/cache-go.yml b/.gitea/workflows/cache-go.yml index 3ace72a..e5e3ca4 100644 --- a/.gitea/workflows/cache-go.yml +++ b/.gitea/workflows/cache-go.yml @@ -1,6 +1,8 @@ name: Caching with Go + on: workflow_dispatch: + jobs: Cache-Go: name: Cache Go @@ -23,5 +25,5 @@ jobs: path: | /your_cache_path key: go_path-${{ steps.hash-go.outputs.hash }} - restore-keys: |- + restore-keys: | go_cache-${{ steps.hash-go.outputs.hash }} \ No newline at end of file diff --git a/.gitea/workflows/cache-test.yml b/.gitea/workflows/cache-test.yml index 37d72ce..b8c5094 100644 --- a/.gitea/workflows/cache-test.yml +++ b/.gitea/workflows/cache-test.yml @@ -5,17 +5,14 @@ on: jobs: TestCache: - env: - RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache name: Cache Go runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 with: go-version: '>=1.20.1' - + - name: Get go-hashfiles uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go