From e16b5f2fa447a88a2c105a5b2e28da25c524939c Mon Sep 17 00:00:00 2001
From: Raggi <35541698+ragrag@users.noreply.github.com>
Date: Tue, 22 Oct 2024 12:05:38 +0200
Subject: [PATCH 1/2] add support for pg 17
---
.github/workflows/test.yml | 2 +-
README.md | 4 ++--
action.yml | 2 +-
entrypoint.sh | 6 +++---
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f52c715..e334cf2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
- postgresql_version: [12, 14, 15, 16]
+ postgresql_version: [12, 14, 15, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v4
diff --git a/README.md b/README.md
index 7a96be9..c66904b 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
- name: Setup PostgreSQL
uses: tj-actions/install-postgresql@v3
with:
- postgresql-version: 16
+ postgresql-version: 17
```
> \[!NOTE]
@@ -36,7 +36,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|----------------------------------------------------------------------------------------|--------|----------|---------|-------------------------------|
-| [postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 16 |
+| [postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 17 |
diff --git a/action.yml b/action.yml
index ce6a7d4..ec5ec0c 100644
--- a/action.yml
+++ b/action.yml
@@ -3,7 +3,7 @@ description: Install PostgreSQL on the GitHub actions runner and verify the inst
author: tj-actions
inputs:
postgresql-version:
- description: 'Version of PostgreSQL. e.g 16'
+ description: 'Version of PostgreSQL. e.g 17'
required: true
runs:
diff --git a/entrypoint.sh b/entrypoint.sh
index f153c84..ac41c13 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -12,9 +12,9 @@ if ! [[ "$INPUT_POSTGRESQL_VERSION" =~ ^[0-9]+$ ]]; then
exit 1
fi
-# Check if the input is between 11 and 16 (inclusive)
-if (( INPUT_POSTGRESQL_VERSION < 12 || INPUT_POSTGRESQL_VERSION > 16 )); then
- echo "Error: $INPUT_POSTGRESQL_VERSION is not between 12 and 16 (inclusive)."
+# Check if the input is between 11 and 17 (inclusive)
+if (( INPUT_POSTGRESQL_VERSION < 12 || INPUT_POSTGRESQL_VERSION > 17 )); then
+ echo "Error: $INPUT_POSTGRESQL_VERSION is not between 12 and 17 (inclusive)."
exit 1
fi
From b6d4c4fa6870ddce9f254c5a98a2c1ab53a3ec46 Mon Sep 17 00:00:00 2001
From: Raggi <35541698+ragrag@users.noreply.github.com>
Date: Tue, 22 Oct 2024 12:07:25 +0200
Subject: [PATCH 2/2] enable manually running test action
---
.github/workflows/test.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e334cf2..1372065 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,7 @@
name: CI
on:
+ workflow_dispatch:
push:
branches:
- main