Fix conditions

This commit is contained in:
Zoey 2023-02-23 23:24:54 +01:00 committed by GitHub
parent 4fcff77998
commit 0657826ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,13 +31,13 @@ jobs:
install: true
- name: Login to DockerHub
uses: docker/login-action@v2
if: ${{ github.ref != 'refs/heads/master' }} && ${{ github.event_name != 'pull_request' }} || ${{ github.event_name == 'schedule' }}
if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.ref != 'refs/heads/master' }} && ${{ github.event_name != 'pull_request' }} || ${{ github.event_name == 'schedule' }}
if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule'
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}