From 2ec2b5cf8a6bc7185abd32cf35d85d45d648b5f5 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Sat, 21 Dec 2024 06:55:35 -0500 Subject: [PATCH] chore: extract version --- .github/workflows/dockerhub-release-matrix.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub-release-matrix.yml b/.github/workflows/dockerhub-release-matrix.yml index e55e7af1f..f491fc9d0 100644 --- a/.github/workflows/dockerhub-release-matrix.yml +++ b/.github/workflows/dockerhub-release-matrix.yml @@ -213,7 +213,11 @@ jobs: | each { |content| $content | lines } # Split into lines | flatten # Flatten the nested lists | where { |line| $line != "" } # Filter empty lines - | each { |line| {version: $line} } # Create objects + | each { |line| + # Extract just the version part after the last colon + let version = ($line | parse "supabase/postgres:{version}" | get version.0) + {version: $version} + } ) }