File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 1- name : Build RFC XML
1+ name : Prepare I-D for Datatracker
22
33on :
4- push :
5- branches : [develop]
6- paths : [IETF-RFC.md]
7- workflow_dispatch :
4+ workflow_dispatch :
85
96jobs :
107 build :
1310 steps :
1411 - uses : actions/checkout@v4
1512
16- # Ruby setup
1713 - uses : ruby/setup-ruby@v1
1814 with :
1915 ruby-version : ' 3.2'
@@ -22,25 +18,34 @@ jobs:
2218 - name : Install kramdown-rfc
2319 run : gem install --no-document kramdown-rfc
2420
21+ - name : Bump I-D version
22+ run : perl -pe 's/open-cloud-mesh-(\d+)/"open-cloud-mesh-" . sprintf("%02d", $1 + 1)/e' -i IETF-RFC.md || exit -1
23+
2524 - name : Convert Markdown to XML
2625 run : kramdown-rfc IETF-RFC.md > IETF-RFC.xml
2726
27+ - uses : actions/upload-artifact@v4
28+ with :
29+ name : rfc-md
30+ path : IETF-RFC.md
31+
2832 - uses : actions/upload-artifact@v4
2933 with :
3034 name : rfc-xml
3135 path : IETF-RFC.xml
3236
33- # Commit the result back to the repo
37+ # Create a PR to the repo with the results
3438 - uses : peter-evans/create-pull-request@v6
3539 with :
3640 branch : rfc/gen-${{ github.sha }}
3741 base : develop
3842 add-paths : |
43+ IETF-RFC.md
3944 IETF-RFC.xml
40- commit-message : ' CI: regenerate IETF-RFC.xml'
45+ commit-message : ' CI: regenerate IETF-RFC.xml for Datatracker '
4146 signoff : true
4247 title : ' Regenerate IETF-RFC.xml'
43- body : ' Automatic XML regeneration by CI '
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 '
4449 reviewers : |
4550 glpatcern
4651 michielbdejong
You can’t perform that action at this time.
0 commit comments