diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6167b67..b267d4c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,7 @@
name: CI
on:
+ workflow_dispatch:
push:
branches:
- main
@@ -27,7 +28,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 ec42c12..a560854 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,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]
@@ -34,7 +34,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