Skip to content

Commit d71faad

Browse files
committed
Automatically update descriptions on Docker Hub
1 parent 4facacd commit d71faad

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Update Docker Hub Description
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- versions.md
8+
- README.md
9+
- docs/**/*
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
strategy:
15+
matrix:
16+
image:
17+
- minimal
18+
- core
19+
- latex
20+
- extra
21+
- typst
22+
23+
updateDescriptions:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Short description
29+
id: config
30+
run: |
31+
printf 'short_description=%s\n' \
32+
"$(pandoc lua docs/scripts/short-description.lua \
33+
${{ matrix.image }})"
34+
35+
- name: Generate README files
36+
run: |
37+
make docs-${{ matrix.image }} > /tmp/README.${{ matrix.image }}.md
38+
39+
- name: minimal
40+
uses: peter-evans/dockerhub-description
41+
with:
42+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
43+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
44+
repository: pandoc/${{ matrix.image }}
45+
readme-filepath: /tmp/README.${{ matrix.image }}.md
46+
short-description: ${{ steps.config.outputs.short_description }}

0 commit comments

Comments
 (0)