3636 id : set-versions
3737 run : |
3838 VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c 'split("\n")[:-1]')
39- echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
39+ echo "postgres_versions=$VERSIONS" >> " $GITHUB_OUTPUT"
4040
4141 build :
4242 needs : prepare
6969
7070 - name : Set PostgreSQL version environment variable
7171 run : |
72- echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
73- echo "EXECUTION_ID=${{ github.run_id }}-${{ matrix.postgres_version }}" >> $GITHUB_ENV
72+ echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> " $GITHUB_ENV"
73+ echo "EXECUTION_ID=${{ github.run_id }}-${{ matrix.postgres_version }}" >> " $GITHUB_ENV"
7474
7575 - name : Generate common-nix.vars.pkr.hcl
7676 run : |
8181 PG_VERSION="${PG_VERSION}-${SUFFIX}"
8282 echo "Added branch suffix to version: $SUFFIX"
8383 fi
84- echo ' postgres-version = "' $PG_VERSION'"' > common-nix.vars.pkr.hcl
84+ echo " postgres-version = \" $PG_VERSION\"" > common-nix.vars.pkr.hcl
8585 # Ensure there's a newline at the end of the file
8686 echo "" >> common-nix.vars.pkr.hcl
8787
@@ -106,8 +106,8 @@ jobs:
106106 - name : Grab release version
107107 id : process_release_version
108108 run : |
109- VERSION=$(cat common-nix.vars.pkr.hcl | sed -e 's/postgres-version = "\(.*\)"/\1/g')
110- echo "version=$VERSION" >> $GITHUB_OUTPUT
109+ VERSION=$(sed -e 's/postgres-version = "\(.*\)"/\1/g' common-nix.vars.pkr.hcl )
110+ echo "version=$VERSION" >> " $GITHUB_OUTPUT"
111111 echo "::notice title=AMI Published::Postgres AMI version: $VERSION"
112112
113113 - name : Create nix flake revision tarball
0 commit comments