From a4fdcacb163353e3b1eebf41ae3d2ee4405f2a72 Mon Sep 17 00:00:00 2001 From: hangpersonal Date: Mon, 20 Oct 2025 23:13:25 -0700 Subject: [PATCH] Add .gitea/workflows/*.yaml --- .gitea/workflows/cache-go.yml | 3 ++- .gitea/workflows/cache-test.yml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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