diff --git a/.github/workflows/dockerhub-description.yaml b/.github/workflows/dockerhub-description.yaml new file mode 100644 index 0000000..76666a3 --- /dev/null +++ b/.github/workflows/dockerhub-description.yaml @@ -0,0 +1,46 @@ +name: Update Docker Hub Description +on: + push: + branches: + - main + paths: + - versions.md + - README.md + - docs/**/* + + workflow_dispatch: + +jobs: + strategy: + matrix: + image: + - minimal + - core + - latex + - extra + - typst + + updateDescriptions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Short description + id: config + run: | + printf 'short_description=%s\n' \ + "$(pandoc lua docs/scripts/short-description.lua \ + ${{ matrix.image }})" + + - name: Generate README files + run: | + make docs-${{ matrix.image }} > /tmp/README.${{ matrix.image }}.md + + - name: minimal + uses: peter-evans/dockerhub-description + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + repository: pandoc/${{ matrix.image }} + readme-filepath: /tmp/README.${{ matrix.image }}.md + short-description: ${{ steps.config.outputs.short_description }}