Skip to content

Commit f58ddb8

Browse files
committed
read citus version from pkgvars
1 parent 6f875b4 commit f58ddb8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/test-package-installation.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ jobs:
3535
echo "Discovered platforms: ${platforms}"
3636
echo "platforms=${platforms}" >> "$GITHUB_OUTPUT"
3737
38-
- name: Resolve Citus & PG versions from postgres-matrix.yml
38+
- name: Resolve Citus & PG versions
3939
id: resolve_versions
4040
run: |
41+
git show "origin/${SOURCE_BRANCH}:pkgvars" > /tmp/pkgvars
4142
git show "origin/${SOURCE_BRANCH}:postgres-matrix.yml" > /tmp/postgres-matrix.yml
4243
43-
# Latest entry = last element in version_matrix
44-
citus_version=$(yq '.version_matrix[-1] | keys | .[0]' /tmp/postgres-matrix.yml)
44+
# Extract version from pkglatest (e.g. "14.0.0.citus-1" -> "14.0.0")
45+
citus_version=$(grep '^pkglatest=' /tmp/pkgvars | sed 's/^pkglatest=//;s/\.citus-.*//')
4546
4647
pg_versions=$(
4748
yq -o=json \

test_package_installation/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ You can manually trigger the workflow using [this GitHub Actions tab](https://gi
3030

3131
It asks for the Citus version to test, and then it automatically discovers the supported platforms and
3232
compatible PostgreSQL versions from the `all-citus` branch, using
33-
[.github/workflows/build-package.yml](https://github.com/citusdata/packaging/blob/all-citus/.github/workflows/build-package.yml)
34-
and [postgres-matrix.yml](https://github.com/citusdata/packaging/blob/all-citus/postgres-matrix.yml) files.
33+
[.github/workflows/build-package.yml](https://github.com/citusdata/packaging/blob/all-citus/.github/workflows/build-package.yml),
34+
[postgres-matrix.yml](https://github.com/citusdata/packaging/blob/all-citus/postgres-matrix.yml) and
35+
[pkgvars](https://github.com/citusdata/packaging/blob/all-citus/pkgvars) files.

0 commit comments

Comments
 (0)