fix(go-cache): add s3-region input and support region flag in GOCACHEPROG
All checks were successful
Go CI with S3 Caching / build-and-test (push) Successful in 44s

This commit is contained in:
2026-05-19 21:11:23 -07:00
parent 3bba1d1cd8
commit 4787830cd9

View File

@@ -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 }}"