Files
SnapOtter/.github/workflows/dockerhub-description.yml
T
SnapOtterandGitHub e6f4ac7b13 ci: also manage the Docker Hub short description via the sync workflow (#365)
Adds a short-description input so the one-liner stays at '200+ tools' alongside the auto-synced overview, instead of drifting at the old '150+ tools'.
2026-06-28 21:51:05 +08:00

33 lines
1.0 KiB
YAML

name: Sync Docker Hub description
# Publishes DOCKERHUB.md as the snapotter/snapotter repository overview (and sets the
# short description) on Docker Hub when it changes on main (or on manual dispatch).
# Secret DOCKER_HUB_README holds the
# Docker Hub account password; DOCKERHUB_USERNAME already exists (used by release.yml).
on:
push:
branches: [main]
paths: ["DOCKERHUB.md"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: dockerhub-description
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_README }}
repository: snapotter/snapotter
readme-filepath: ./DOCKERHUB.md
short-description: "Self-hosted file toolkit. 200+ tools for Image, Video, Audio, PDF, and Files. Open source."