Skip to content

Commit 41d0d11

Browse files
committed
tweak action
1 parent 058c747 commit 41d0d11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
docker run kooldev/wordpress:${{ matrix.version }}-nginx-prod php /usr/src/wordpress/index.php
4242
4343
- name: Push to Hub
44-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
44+
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-wordpress'
4545
env:
4646
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
4747
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)