ci: Allow workflow_dispatch runs to log in to GHCR. (#19885)

This commit is contained in:
Josh Klar 2023-08-03 10:38:18 -07:00 committed by GitHub
parent 8bb007396c
commit 5903372e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && github.event_name != 'workflow_dispatch' }}
uses: docker/login-action@v2
with:
registry: ghcr.io