From 6f21df87717f8a871b4ae292faff107bde9d214d Mon Sep 17 00:00:00 2001 From: John Helmert III Date: Wed, 7 Feb 2024 20:59:57 -0800 Subject: actions: limit pushes to master branch We don't want these steps to run on branches in this repository, even if they're in a pull request to the master branch. We only want pushes to happen from the master branch. Closes: !137 Signed-off-by: John Helmert III --- .github/actions/container_build/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/container_build/action.yml b/.github/actions/container_build/action.yml index f4f2378..fc2b9b9 100644 --- a/.github/actions/container_build/action.yml +++ b/.github/actions/container_build/action.yml @@ -35,14 +35,14 @@ runs: - name: Login to DockerHub uses: docker/login-action@v2 if: | - github.repository_owner == 'gentoo' && + github.ref_name == 'master' && github.repository_owner == 'gentoo' && (github.event_name == 'schedule' || github.event_name == 'push') with: username: ${{ inputs.dockerhub_username }} password: ${{ inputs.dockerhub_password }} - name: Push image if: | - github.repository_owner == 'gentoo' && + github.ref_name == 'master' && github.repository_owner == 'gentoo' && (github.event_name == 'schedule' || github.event_name == 'push') shell: bash env: -- cgit v1.2.3-65-gdbad