Skip to content

Commit 3c28f5c

Browse files
committed
fix: upgrade script workflow
1 parent 2692c34 commit 3c28f5c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
id: process_release_version
4343
run: |
4444
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
45-
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
45+
VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes
4646
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
4747
VERSION=${{ inputs.postgresVersion }}
4848
fi
@@ -92,7 +92,7 @@ jobs:
9292
id: process_release_version
9393
run: |
9494
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
95-
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
95+
VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes
9696
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
9797
echo "major_version=$(echo $VERSION | cut -d'.' -f1)" >> "$GITHUB_OUTPUT"
9898

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- develop
77
- release/*
8+
- pcnc/fix-upgrade-scripts
89
paths:
910
- '.github/workflows/publish-nix-pgupgrade-scripts.yml'
1011
workflow_dispatch:
@@ -101,7 +102,7 @@ jobs:
101102
id: process_release_version
102103
run: |
103104
VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
104-
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
105+
VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes
105106
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
106107
VERSION=${{ inputs.postgresVersion }}
107108
fi

run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
aws ec2 start-instances --instance-ids i-01fe91840bda2b0af i-036b68864ced1a02d i-0f69b0c8801fceb0e i-0afad117f95285624 i-02740b25ac62e6335 i-0f7fee2986d58187b --region eu-west-3 --profile supabase &

0 commit comments

Comments
 (0)