From 08513cc78a940495d4214b1f04a470249ab996e5 Mon Sep 17 00:00:00 2001 From: dvoraen <42825596+dvoraen@users.noreply.github.com> Date: Thu, 1 Dec 2022 14:57:06 -0800 Subject: [PATCH] deploy job only runs if relevant branches --- .github/workflows/github_action_test_suite.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/github_action_test_suite.yml b/.github/workflows/github_action_test_suite.yml index b46808cb65..7a3adcaee8 100644 --- a/.github/workflows/github_action_test_suite.yml +++ b/.github/workflows/github_action_test_suite.yml @@ -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 }}