Fix the upstream checkout and skip the dead cache server
Some checks failed
build / build (push) Failing after 49s
Some checks failed
build / build (push) Failing after 49s
Two separate CI failures: - The cross-repo checkout of terraform-provider-dokploy asked the API for the default branch and got "not found", failing the build. An explicit ref: main skips the lookup entirely. - setup-go caches by default, and this runner's cache server is unreachable from job containers, so restore and save each block until they time out. The same change cut the upstream provider's build from 15m46s to 2m37s.
This commit is contained in:
@@ -33,10 +33,13 @@ jobs:
|
||||
repository: ${{ env.UPSTREAM_REPO }}
|
||||
path: ${{ env.UPSTREAM_DIR }}
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
# checkout's default-branch lookup returns "not found" on this Gitea.
|
||||
ref: main
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: false
|
||||
|
||||
- uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
@@ -59,10 +62,13 @@ jobs:
|
||||
repository: ${{ env.UPSTREAM_REPO }}
|
||||
path: ${{ env.UPSTREAM_DIR }}
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
# checkout's default-branch lookup returns "not found" on this Gitea.
|
||||
ref: main
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: false
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user