0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00

support postgresql@16

This commit is contained in:
Brennan Colberg 2023-11-22 05:45:00 -08:00 committed by Tonye Jack
parent cda8042c84
commit 46ba3ce2b3
4 changed files with 7 additions and 7 deletions

View file

@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, macos-13, windows-latest]
postgresql_version: [10, 11, 12, 14, 15]
postgresql_version: [10, 11, 12, 14, 15, 16]
steps:
- name: Checkout
uses: actions/checkout@v4

View file

@ -17,7 +17,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
- name: Setup PostgreSQL
uses: tj-actions/install-postgresql@v2
with:
postgresql-version: 15
postgresql-version: 16
```
> NOTE: This updates the installed PostgreSQL version with the specified version and updates the PATH.
@ -28,7 +28,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|----------------------------------------------------------------------------------------|--------|----------|---------|-------------------------------|
| <a name="input_postgresql-version"></a>[postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 15 |
| <a name="input_postgresql-version"></a>[postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 16 |
<!-- AUTO-DOC-INPUT:END -->

View file

@ -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 15'
description: 'Version of PostgreSQL. e.g 16'
required: true
runs:

View file

@ -12,9 +12,9 @@ if ! [[ "$INPUT_POSTGRESQL_VERSION" =~ ^[0-9]+$ ]]; then
exit 1
fi
# Check if the input is between 10 and 15 (inclusive)
if (( INPUT_POSTGRESQL_VERSION < 10 || INPUT_POSTGRESQL_VERSION > 15 )); then
echo "Error: $INPUT_POSTGRESQL_VERSION is not between 10 and 15 (inclusive)."
# Check if the input is between 10 and 16 (inclusive)
if (( INPUT_POSTGRESQL_VERSION < 10 || INPUT_POSTGRESQL_VERSION > 16 )); then
echo "Error: $INPUT_POSTGRESQL_VERSION is not between 10 and 16 (inclusive)."
exit 1
fi