Skip to content

Commit 7d15dbe

Browse files
committed
Added check in the update-dockerhub-docs.yml
Signed-off-by: Hanxi Zhang <[email protected]>
1 parent 22e3649 commit 7d15dbe

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,10 @@ jobs:
291291
292292
update-dockerhub-description:
293293
if: github.event_name == 'push' && github.ref == 'refs/heads/mainline'
294-
needs: [merge-manifest]
294+
needs: merge-manifest
295295
name: Update DockerHub Description
296-
runs-on: ubuntu-latest
297-
steps:
298-
- name: Update DockerHub Description
299-
if: env.HAS_SECRETS == 'true'
300-
uses: ./.github/workflows/update-dockerhub-docs.yml
301-
with:
302-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
303-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
304-
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
296+
uses: ./.github/workflows/update-dockerhub-docs.yml
297+
secrets:
298+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
299+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
300+
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}

.github/workflows/update-dockerhub-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Docker Hub Description
23+
if: ${{ secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_TOKEN && secrets.DOCKERHUB_REPOSITORY }}
2324
uses: peter-evans/dockerhub-description@v4
2425
with:
2526
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)