Check that PR is merged before updating dockerhub descriptions

Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding
2022-07-30 10:42:11 -04:00
parent 58aa4654f1
commit 2c01bb0ac5
+1 -1
View File
@@ -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 }}