diff --git a/.gitea/workflows/cache-go.yml b/.gitea/workflows/cache-go.yml index 0231215..3ace72a 100644 --- a/.gitea/workflows/cache-go.yml +++ b/.gitea/workflows/cache-go.yml @@ -1,5 +1,6 @@ name: Caching with Go -on: push +on: + workflow_dispatch: jobs: Cache-Go: name: Cache Go diff --git a/.gitea/workflows/cache-test.yml b/.gitea/workflows/cache-test.yml index 8a91dff..37d72ce 100644 --- a/.gitea/workflows/cache-test.yml +++ b/.gitea/workflows/cache-test.yml @@ -20,7 +20,7 @@ jobs: uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go with: - patterns: |- + patterns: | go.mod go.sum @@ -29,13 +29,13 @@ jobs: - name: Cache go id: cache-go - uses: https://github.com/actions/cache@v3 # Action cache + uses: actions/cache@v3 with: # specify with your GOMODCACHE and GOCACHE - path: |- + path: | /root/go/pkg/mod /root/.cache/go-build key: go_cache-${{ steps.hash-go.outputs.hash }} - restore-keys: |- + restore-keys: | go_cache-${{ steps.hash-go.outputs.hash }} - name: Build