-
-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (46 loc) · 1.32 KB
/
Copy pathcreate-git-dictionary-base.yml
File metadata and controls
57 lines (46 loc) · 1.32 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: create git dictionary base
on:
workflow_dispatch:
inputs:
gitTag:
description: 'git cli repository tag'
required: true
default: 'v2.34.1'
jobs:
create-base:
runs-on: ubuntu-latest
steps:
- name: Checkout local
uses: actions/checkout@v5
with:
path: 'PowerType'
- name: Checkout github
uses: actions/checkout@v5
with:
repository: 'git/git'
ref: 'refs/tags/${{ github.event.inputs.gitTag }}'
path: 'git'
- name: Install dependencies
run: sudo apt-get install -y build-essential asciidoc
- name: Create documentation
run: |
cd git/Documentation
make
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: git xml base
path: 'git/Documentation/git-*.xml'
- name: Move xml documentation
run: |
mv -v git/Documentation/git-*.xml PowerType/GenerateDictionaries/git/
- name: Transform asciidoc to powershell
shell: pwsh
run: |
cd 'PowerType/GenerateDictionaries/git'
./asciidoc.to.dictionary.ps1
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: git dictionary base
path: 'PowerType/GenerateDictionaries/git/output.ps1'