Skip to content

Commit

Permalink
Make non-master CI build only for repo owner
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Dec 8, 2024
1 parent ff64819 commit 794daae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 794daae

Please sign in to comment.