-
-
Notifications
You must be signed in to change notification settings - Fork 106
46 lines (40 loc) · 1.08 KB
/
dockerhub-description.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}