mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: "Update Image Description at Dockerhub"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/image-docs-publish.yaml
|
|
- docker/**/README.md
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
outputs:
|
|
apps: ${{ steps.filter.outputs.changes }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- uses: dorny/paths-filter@v3
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
klipper:
|
|
- .github/workflows/image-docs-publish.yaml
|
|
- docker/klipper/README.md
|
|
klipperscreen:
|
|
- .github/workflows/image-docs-publish.yaml
|
|
- docker/klipperscreen/README.md
|
|
moonraker:
|
|
- .github/workflows/image-docs-publish.yaml
|
|
- docker/moonraker/README.md
|
|
ustreamer:
|
|
- .github/workflows/image-docs-publish.yaml
|
|
- docker/moonraker/README.md
|
|
dockerhub-description:
|
|
needs: changes
|
|
if: ${{ needs.changes.outputs.apps != '' && toJson(fromJson(needs.changes.outputs.apps)) != '[]' }}
|
|
strategy:
|
|
matrix:
|
|
app: ${{ fromJSON(needs.changes.outputs.apps) }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- name: "Update Docker Hub Description"
|
|
uses: peter-evans/dockerhub-description@v4
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}
|
|
readme-filepath: ./docker/${{ matrix.app }}/README.md
|
|
enable-url-completion: true
|