Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ci: read branch names from env instead of interpolating them into the shell (#10470)

Kobi Hikri2c9ce8b319fd
diff --git a/.github/workflows/container_foundationdb_version.yml b/.github/workflows/container_foundationdb_version.yml
index 052ad57c8a..d88b9fc506 100644
--- a/.github/workflows/container_foundationdb_version.yml
+++ b/.github/workflows/container_foundationdb_version.yml
@@ -140,13 +140,17 @@ jobs:
- name: Determine branch to build
id: branch
+ env:
+ INPUT_REF: ${{ inputs.seaweedfs_ref }}
+ HEAD_REF: ${{ github.head_ref }}
+ REF_NAME: ${{ github.ref_name }}
run: |
- if [ -n "${{ inputs.seaweedfs_ref }}" ]; then
- echo "branch=${{ inputs.seaweedfs_ref }}" >> "$GITHUB_OUTPUT"
+ if [ -n "$INPUT_REF" ]; then
+ echo "branch=$INPUT_REF" >> "$GITHUB_OUTPUT"
elif [ "${{ github.event_name }}" = "pull_request" ]; then
- echo "branch=${{ github.head_ref }}" >> "$GITHUB_OUTPUT"
+ echo "branch=$HEAD_REF" >> "$GITHUB_OUTPUT"
else
- echo "branch=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
+ echo "branch=$REF_NAME" >> "$GITHUB_OUTPUT"
fi
- name: Build and push image