10000 fix: don not lose if statements used for hotfix when needed · supabase/postgres@312e4d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 312e4d7

Browse files
committed
fix: don not lose if statements used for hotfix when needed
1 parent 3454b62 commit 312e4d7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
run: |
4444
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
4545
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
46+
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
47+
VERSION=${{ inputs.postgresVersion }}
48+
fi
4649
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4750
echo "major_version=$(echo $VERSION | cut -d'.' -f1)" >> "$GITHUB_OUTPUT"
4851

.github/workflows/publish-nix-pgupgrade-scripts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
run: |
5252
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
5353
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
54+
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
55+
VERSION=${{ inputs.postgresVersion }}
56+
fi
5457
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
5558
5659
- name: Create a tarball containing pg_upgrade scripts

0 commit comments

Comments
 (0)
0