From 4787830cd962698a255c678fc9c4daa1769f41be Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 19 May 2026 21:11:23 -0700 Subject: [PATCH] fix(go-cache): add s3-region input and support region flag in GOCACHEPROG --- .gitea/actions/go-cache/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/actions/go-cache/action.yml b/.gitea/actions/go-cache/action.yml index d7a0612..b4ebfb0 100644 --- a/.gitea/actions/go-cache/action.yml +++ b/.gitea/actions/go-cache/action.yml @@ -19,6 +19,10 @@ inputs: description: S3 bucket for go cache. Leave empty to use local caching only. default: "" required: false + s3-region: + description: S3 region name. + default: auto + required: false s3-endpoint: description: Optional S3-compatible endpoint URL, for example https://s3.example.com. default: "" @@ -58,7 +62,7 @@ runs: mkdir -p "$CACHE_DIR" # Build GOCACHEPROG command - CMD="$HOME/go/bin/go-cache-plugin --cache-dir=$CACHE_DIR --bucket=${{ inputs.s3-bucket }}" + CMD="$HOME/go/bin/go-cache-plugin --cache-dir=$CACHE_DIR --bucket=${{ inputs.s3-bucket }} --region=${{ inputs.s3-region }}" if [ -n "${{ inputs.s3-endpoint }}" ]; then CMD="$CMD --s3-endpoint-url=${{ inputs.s3-endpoint }}"