From 42f4ddcec6b35d7ec4b0d319f45fb61791369ff2 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 8 Dec 2024 14:31:39 +0000 Subject: [PATCH] Make non-master CI build only for repo owner --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb875f1..598163d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,7 @@ jobs: -t ghcr.io/${USERNAME}/tg-spam:${ref} -t ${USERNAME}/tg-spam:${ref} . - name: build and deploy non-master image to ghcr.io and dockerhub - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref != 'refs/heads/master' && github.actor == 'umputun' }} env: GITHUB_PACKAGE_TOKEN: ${{ secrets.PKG_TOKEN }} DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}