From 745e253a78b3b252e4311b9a1cde9aaa5be23993 Mon Sep 17 00:00:00 2001 From: mauwii Date: Thu, 9 Feb 2023 01:05:08 +0100 Subject: [PATCH] fix condition of Docker Hub Description step --- .github/workflows/build-container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index cca1347994..60aaf4780d 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -93,7 +93,7 @@ jobs: cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-${{ matrix.flavor }} - name: Docker Hub Description - if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != '' + if: github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' && vars.DOCKERHUB_REPOSITORY != '' uses: peter-evans/dockerhub-description@v3 with: username: ${{ vars.DOCKERHUB_USERNAME }}