From 2c01bb0ac550a38045f795cb0680fd6f89ce0a18 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Sat, 30 Jul 2022 10:39:32 -0400 Subject: [PATCH] Check that PR is merged before updating dockerhub descriptions Signed-off-by: Kyle Harding --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1304ec0..dba665a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -138,7 +138,7 @@ jobs: ${{ steps.meta.outputs.tags }} - uses: peter-evans/dockerhub-description@v3 - if: ${{ inputs.publish != false && inputs.dockerhub_description_repo != '' && (github.event_name != 'pull_request' || github.event.action == 'closed') }} + if: ${{ inputs.publish != false && inputs.dockerhub_description_repo != '' && (github.event_name != 'pull_request' || (github.event.action == 'closed' && github.event.pull_request.merged == true)) }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}