diff --git a/.github/actions/setup-database.yml b/.github/actions/setup-database.yml index b1afbc272b..2d98344961 100644 --- a/.github/actions/setup-database.yml +++ b/.github/actions/setup-database.yml @@ -4,9 +4,9 @@ # (such as with PostgreSQL and MySQL) before you initiate unit tests that will employ that # database service. -# NOTE: This action was written for use with the core Evennia workflows ONLY. +# NOTE: This action was intended for use with the core Evennia workflows ONLY. -name: Set up Database +name: Set up Evennia database service author: dvoraen description: "Activates the database server for the passed in service and ensures it's ready for use." @@ -24,7 +24,7 @@ runs: # if: inputs.database == "sqlite3" - name: Set up PostgreSQL server - if: inputs.database == "postgresql" + if: ${{ inputs.database == "postgresql" }} uses: harmon758/postgresql-action@v1 with: postgresql version: "11" @@ -33,7 +33,7 @@ runs: postgresql password: "password" - name: Wait for PostgreSQL to activate - if: inputs.database == "postgresql" && success() + if: ${{ inputs.database == "postgresql" }} run: | while ! pg_isready -h 127.0.0.1 -q >/dev/null 2>&1 do @@ -44,7 +44,7 @@ runs: shell: bash - name: Set up MySQL server - if: inputs.database == "mysql" + if: ${{ inputs.database == "mysql" }} uses: mirromutth/mysql-action@v1.1 with: host port: 3306 @@ -58,7 +58,7 @@ runs: mysql root password: root_password - name: Wait for MySQL to activate - if: inputs.database == "mysql" && success() + if: ${{ inputs.database == "mysql" }} run: | while ! mysqladmin ping -h 127.0.0.1 -u root -proot_password -s >/dev/null 2>&1 do @@ -69,7 +69,7 @@ runs: shell: bash - name: Set up MySQL Privileges - if: inputs.database == "mysql" && success() + if: ${{ inputs.database == "mysql" }} run: | cat <