Skip to content

fix: deprecation

fix: deprecation #2

name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- .github/workflows/dockerhub-description.yml
- README.md
workflow_dispatch:
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-using-secrets
env:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- uses: actions/checkout@v5
- name: Prepare
id: prep
run: |
echo "repository=$(echo "${{ vars.IMAGE_NAME }}" | tr '[A-Z]' '[a-z]')" >> $GITHUB_OUTPUT
- uses: peter-evans/dockerhub-description@v5
if: ${{ !env.ACT && vars.DOCKERHUB_USERNAME != '' && env.dockerhub_token != '' }}
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ steps.prep.outputs.repository }}
# Input exceeding 100 characters will be truncated.
short-description: ${{ github.event.repository.description }}
# readme-filepath: ./README-DOCKERHUB.md
enable-url-completion: true