File tree Expand file tree Collapse file tree 1 file changed +19
-28
lines changed
Expand file tree Collapse file tree 1 file changed +19
-28
lines changed Original file line number Diff line number Diff line change 66 types : [generate-rpcn-docs]
77
88jobs :
9- generate-and-pr :
9+ generate-docs- and-submit-pull-request :
1010 runs-on : ubuntu-latest
1111
12+ permissions :
13+ id-token : write
14+ contents : read
15+
1216 concurrency :
1317 group : update-rpcn-connector-docs
1418 cancel-in-progress : true
1519
1620 env :
17- NODE_VERSION : ' 16 '
21+ NODE_VERSION : ' 18 '
1822 DOCS_OVERRIDES : docs-data/overrides.json
1923
2024 steps :
4044 cache : ' npm'
4145
4246 - name : Install dependencies
43- run : npm ci
47+ run : npm install
48+
49+ - name : Install tools
50+ run : |
51+ npx doc-tools install-test-dependencies
52+ rpk connect install
4453
4554 - name : Generate RPCN Connector docs
4655 id : generate
@@ -50,36 +59,18 @@ jobs:
5059 --overrides $DOCS_OVERRIDES \
5160 --draft-missing > full_output.txt
5261
53- # Extract full delta report block (stopping at the first non-bullet or EOF)
54- awk '/📋 RPCN Connector Delta Report/{flag=1; next} flag {if (/^➤/ || /^•/) print; else exit}' full_output.txt > raw_delta.txt
55-
56- {
57- echo "📋 RPCN Connector Delta Report"
58- echo ""
59-
60- if grep -q 'components:' raw_delta.txt; then
61- echo "<details>"
62- echo "<summary>Newly added components:</summary>"
63- grep '• ' raw_delta.txt | grep 'components:' -A 1000 | grep -v 'fields:' | grep '• ' | sed 's/• /- /'
64- echo "</details>"
65- echo ""
66- fi
67-
68- if grep -q 'fields:' raw_delta.txt; then
69- echo "<details>"
70- echo "<summary>Newly added fields:</summary>"
71- grep '• ' raw_delta.txt | grep 'fields:' -A 1000 | sed 's/• /- /'
72- echo "</details>"
73- fi
74- } > delta_report.md
75-
76- # Set multiline output safely
7762 {
7863 echo "delta_report<<EOF"
79- cat delta_report.md
64+ echo "<details><summary>RPCN Connector Generation Output</summary>"
65+ echo ""
66+ cat full_output.txt
67+ echo ""
68+ echo "</details>"
8069 echo "EOF"
8170 } >> "$GITHUB_OUTPUT"
8271
72+ rm -f full_output.txt delta_report.md
73+
8374 - name : Create Pull Request
8475 uses : peter-evans/create-pull-request@v6
8576 with :
You can’t perform that action at this time.
0 commit comments