Merge pull request #3010 from dvoraen/action_fix

Action fix
This commit is contained in:
Griatch 2022-12-02 00:21:08 +01:00 committed by GitHub
commit e9c660b6e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,6 @@ description: "Activates the database server for the passed in service and ensure
inputs:
database:
description: "Database service being initialized."
type: string
required: true
runs:
@ -84,3 +83,4 @@ runs:
- name: Check running containers
if: ${{ inputs.database == 'postgresql' || inputs.database == 'mysql' }}
run: docker ps -a
shell: bash

View file

@ -107,7 +107,7 @@ jobs:
name: Deploy Docker Image
needs: test
runs-on: ubuntu-latest
if: ${{ github.repository == 'evennia/evennia' }}
if: ${{ github.repository == 'evennia/evennia' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') }}
steps:
- uses: actions/checkout@v3
@ -118,7 +118,6 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}