Skip to content

Commit 718b750

Browse files
committed
feat: add condition to Docker Hub description step
- Added a condition to the Docker Hub description step to ensure it only runs when the dry_run input is false. This prevents unnecessary execution during dry runs, optimizing the workflow.
1 parent bc376bf commit 718b750

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy-tag.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
- name: Docker Hub Description
8787
# https://github.com/marketplace/actions/docker-hub-description
8888
uses: peter-evans/dockerhub-description@v5
89+
if: ${{ ! inputs.dry_run }}
8990
with:
9091
username: ${{ vars.ENV_DOCKERHUB_OWNER }}
9192
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)