File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-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+ - uses : actions/checkout@v4
30+
31+ - name : Short description
32+ id : config
33+ run : |
34+ printf 'short_description=%s\n' \
35+ "$(pandoc lua docs/scripts/short-description.lua \
36+ ${{ matrix.image }})" \
37+ >> $GITHUB_OUTPUT
38+
39+
40+ - name : Generate README files
41+ run : |
42+ make docs-${{ matrix.image }} > /tmp/README.${{ matrix.image }}.md
43+
44+ - name : minimal
45+ uses : peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae
46+ with :
47+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
48+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
49+ repository : pandoc/${{ matrix.image }}
50+ readme-filepath : /tmp/README.${{ matrix.image }}.md
51+ short-description : ${{ steps.config.outputs.short_description }}
You can’t perform that action at this time.
0 commit comments