Skip to content

Commit d6c446d

Browse files
committed
CI: expose conversion output in generated PR
1 parent cfaea27 commit d6c446d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/rfc.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ jobs:
2121
- name: Bump I-D version
2222
run: perl -pe 's/open-cloud-mesh-(\d+)/"open-cloud-mesh-" . sprintf("%02d", $1 + 1)/e' -i IETF-RFC.md || exit -1
2323

24-
- name: Convert Markdown to XML
25-
run: kramdown-rfc IETF-RFC.md > IETF-RFC.xml
24+
- name: Convert Markdown to XML and save output
25+
id: convert
26+
run: |
27+
result=$(kramdown-rfc IETF-RFC.md > IETF-RFC.xml > 2>&1 > /dev/null)
28+
echo "result<<EOF" >> $GITHUB_OUTPUT
29+
echo "$result" >> $GITHUB_OUTPUT
30+
echo "EOF" >> $GITHUB_OUTPUT
2631
2732
- uses: actions/upload-artifact@v4
2833
with:
@@ -45,7 +50,7 @@ jobs:
4550
commit-message: 'CI: regenerate IETF-RFC.xml for Datatracker'
4651
signoff: true
4752
title: 'Regenerate IETF-RFC.xml'
48-
body: 'This autogenerated PR bumps the IETF version of the I-D and prepares the IETF-RFC.xml file for submission to the [IETF Datatracker](https://datatracker.ietf.org/submit)'
53+
body: 'This autogenerated PR bumps the IETF version of the I-D and prepares the IETF-RFC.xml file for submission to the [IETF Datatracker](https://datatracker.ietf.org/submit).\n\nThe conversion produced the output below:\n```${{ steps.get_output.convert.result }}```'
4954
reviewers: |
5055
glpatcern
5156
MahdiBaghbani

0 commit comments

Comments
 (0)