fix condition of Docker Hub Description step

This commit is contained in:
mauwii 2023-02-09 01:05:08 +01:00
parent 2ea551d37d
commit 745e253a78
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -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 }}