From 5903372e1aaa812a60282acf95c34693faa9e15e Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Thu, 3 Aug 2023 10:38:18 -0700 Subject: [PATCH] ci: Allow workflow_dispatch runs to log in to GHCR. (#19885) --- .github/workflows/build-base-ruby-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-base-ruby-image.yml b/.github/workflows/build-base-ruby-image.yml index 3dfe41884..873787946 100644 --- a/.github/workflows/build-base-ruby-image.yml +++ b/.github/workflows/build-base-ruby-image.yml @@ -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