From 047a2d705755651af7a62462248edd46750e408c Mon Sep 17 00:00:00 2001 From: Paul Cioanca Date: Wed, 18 Dec 2024 05:38:59 +0200 Subject: [PATCH] fix: upgrade script workflow (#1375) --- .github/workflows/publish-nix-pgupgrade-bin-flake-version.yml | 4 ++-- .github/workflows/publish-nix-pgupgrade-scripts.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml b/.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml index 6160b586c..47bbc274d 100644 --- a/.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml +++ b/.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml @@ -42,7 +42,7 @@ jobs: id: process_release_version run: | VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml) - VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes + VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes if [[ "${{ inputs.postgresVersion }}" != "" ]]; then VERSION=${{ inputs.postgresVersion }} fi @@ -92,7 +92,7 @@ jobs: id: process_release_version run: | VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml) - VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes + VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "major_version=$(echo $VERSION | cut -d'.' -f1)" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/publish-nix-pgupgrade-scripts.yml b/.github/workflows/publish-nix-pgupgrade-scripts.yml index a4aa4c3de..907f5e8e8 100644 --- a/.github/workflows/publish-nix-pgupgrade-scripts.yml +++ b/.github/workflows/publish-nix-pgupgrade-scripts.yml @@ -101,7 +101,7 @@ jobs: id: process_release_version run: | VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml) - VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes + VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes if [[ "${{ inputs.postgresVersion }}" != "" ]]; then VERSION=${{ inputs.postgresVersion }} fi