From 6e9de9d9b0e3f09aa86382f324a2a6db2a619ac0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 12 Sep 2023 11:23:26 -0600 Subject: [PATCH] Update action.yml --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 7ff94ba..556ed82 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: install-postgresql description: Install PostgreSQL on the GitHub actions runner and verify the installation. author: tj-actions inputs: - postgresql_version: + postgresql-version: description: 'Version of PostgreSQL. e.g 15' required: true @@ -15,14 +15,14 @@ runs: env: # INPUT_ is not available in Composite run steps # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611 - INPUT_POSTGRESQL_VERSION: ${{ inputs.postgresql_version }} + INPUT_POSTGRESQL_VERSION: ${{ inputs.postgresql-version }} - name: Verify PostgreSQL run: | # Check the postgresql version POSTGRESQL_VERSION=$(psql --version | awk '{print $3}') - if [[ "$POSTGRESQL_VERSION" != "${{ inputs.postgresql_version }}."* ]]; then - echo "PostgreSQL version $POSTGRESQL_VERSION does not match the expected version ${{ inputs.postgresql_version }}.*" + if [[ "$POSTGRESQL_VERSION" != "${{ inputs.postgresql-version }}."* ]]; then + echo "PostgreSQL version $POSTGRESQL_VERSION does not match the expected version ${{ inputs.postgresql-version }}.*" exit 1 fi shell: bash