Skip to content

Commit a7f1475

Browse files
authored
CI: switched the workflow to manual mode + bump IETF version (#243)
1 parent 6559bd7 commit a7f1475

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/rfc.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
name: Build RFC XML
1+
name: Prepare I-D for Datatracker
22

33
on:
4-
push:
5-
branches: [develop]
6-
paths: [IETF-RFC.md]
7-
workflow_dispatch:
4+
workflow_dispatch:
85

96
jobs:
107
build:
@@ -13,7 +10,6 @@ jobs:
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](https://datatracker.ietf.org/submit)'
4449
reviewers: |
4550
glpatcern
4651
michielbdejong

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The Open Cloud Mesh API specification is an open source, community-driven projec
2020

2121
If you'd like to contribute, please follow the [Contributing Guidelines](CONTRIBUTING.md) and the [IETF Note Well](https://www.ietf.org/about/note-well/).
2222

23-
To contribute to the Draft, please do all edits in `IETF-RFC.md` only. A GitHub action will regenerate the `IETF-RFC.xml` file.
23+
To contribute to the Draft, please do all edits in `IETF-RFC.md` only. A [GitHub action](https://github.com/cs3org/OCM-API/actions/workflows/rfc.yml) is available to prepare a new version of the `IETF-RFC.xml` file for submission to the IETF Datatracker.
2424

2525
## History and Changelog
2626

0 commit comments

Comments
 (0)