Skip to content

Commit 30a6716

Browse files
authored
CI: expose output of conversion in generated PR (#256)
* Revert draft number for the CI * CI: expose conversion output in generated PR
1 parent 21de97b commit 30a6716

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.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

IETF-RFC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'Open Cloud Mesh'
3-
docname: draft-lopresti-open-cloud-mesh-05
3+
docname: draft-lopresti-open-cloud-mesh-04
44
category: std
55

66
ipr: trust200902

0 commit comments

Comments
 (0)