Fix default branch check in the Dokcer action

This commit is contained in:
Ilya Fedin 2022-04-19 09:01:36 +04:00 committed by John Preston
parent 1c5a3aef54
commit 643a034aae
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ jobs:
run: docker build -t $IMAGE_TAG --build-arg DEBUG= Telegram/build/docker/centos_env
- name: Push the Docker image.
if: ${{ github.ref_name == github.repository.default_branch }}
if: ${{ github.ref_name == github.event.repository.default_branch }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker push $IMAGE_TAG