-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (34 loc) · 1.25 KB
/
manuallyRunXmlToMD.yml
File metadata and controls
43 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# use this action to convert the xml coding guidelines file into the markdown file
name: Update csharp Markdown in selected branch
on:
workflow_dispatch:
inputs:
commitComment:
description: 'Commit Comment'
required: true
default: 'Updating docs folder'
jobs:
build:
runs-on: ubuntu-latest
env:
XmlFileName: "Guidelines(8th Edition).xml"
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
token: ${{ secrets.CI_PAT }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 5.0.201
- name: restore_compile_run_createMD
run: >
dotnet run --configuration Release --project ./Tools/XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj
-- --xml-input-file "./docs/${{ env.XmlFileName }}" --markdown-output-file "./docs/coding/csharp.md"
- name: Create commit and push to CodingGuideLinesMDUpdate
run: |
git config user.name '${{ github.actor }}'
git config user.email '${{ github.actor }}@user.noreply.github.com'
git add -A
git commit -m "new coding guidelines MD File created"
git push origin '${{ github.ref }}'