File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update Docker Hub Description
2+ on :
3+ push :
4+ branches :
5+ - main
6+ # REMOVE BEFORE FLIGHT: for testing
7+ - dockerhub-descriptions
8+ # paths:
9+ # - versions.md
10+ # - README.md
11+ # - docs/**/*
12+
13+ workflow_dispatch :
14+
15+ jobs :
16+ updateDescriptions :
17+ name : Update description on Docker Hub
18+ runs-on : ubuntu-latest
19+ strategy :
20+ matrix :
21+ image :
22+ - minimal
23+ - core
24+ - latex
25+ - extra
26+ - typst
27+
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+
32+ - name : Setup pandoc
33+ uses : pandoc/actions/setup@v1
34+
35+ - name : Short description
36+ id : config
37+ run : |
38+ printf 'short_description=%s\n' \
39+ "$(pandoc lua docs/scripts/short-description.lua \
40+ ${{ matrix.image }})" \
41+ >> $GITHUB_OUTPUT
42+
43+
44+ - name : Generate README files
45+ run : |
46+ make docs-${{ matrix.image }} > /tmp/README.${{ matrix.image }}.md
47+
48+ - name : minimal
49+ uses : peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae
50+ with :
51+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
52+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
53+ repository : pandoc/${{ matrix.image }}
54+ readme-filepath : /tmp/README.${{ matrix.image }}.md
55+ short-description : ${{ steps.config.outputs.short_description }}
You can’t perform that action at this time.
0 commit comments