Skip to content

Commit 46c7462

Browse files
committed
fix: publish action
1 parent ffa1052 commit 46c7462

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- develop
77
- release/*
8+
- sam/publish-gh-actions
89
paths:
910
- '.github/workflows/ami-release-nix.yml'
1011
- 'common-nix.vars.pkr.hcl'

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches:
66
- develop
77
- release/*
8+
paths:
9+
- '.github/workflows/publish-nix-pgupgrade-scripts.yml'
10+
- sam/publish-gh-actions
11+
#TODO PR remove prior to merge
12+
pull_request:
13+
branches:
14+
- sam/publish-gh-actions
815
paths:
916
- '.github/workflows/publish-nix-pgupgrade-scripts.yml'
1017
workflow_dispatch:
@@ -49,7 +56,7 @@ jobs:
4956
- name: Grab release version
5057
id: process_release_version
5158
run: |
52-
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
59+
VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
5360
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
5461
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
5562
VERSION=${{ inputs.postgresVersion }}
@@ -95,11 +102,13 @@ jobs:
95102
steps:
96103
- name: Checkout Repo
97104
uses: actions/checkout@v3
98-
105+
106+
- uses: DeterminateSystems/nix-installer-action@main
107+
99108
- name: Grab release version
100109
id: process_release_version
101110
run: |
102-
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
111+
VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
103112
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
104113
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
105114
VERSION=${{ inputs.postgresVersion }}

ansible/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ postgres_major:
1111

1212
# Full version strings for each major version
1313
postgres_release:
14-
postgres15: "15.8.1.010"
15-
postgres16: "16.3.1.016"
14+
postgres15: "15.8.1.010-staging"
15+
postgres16: "16.3.1.016-staging"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)