-
Notifications
You must be signed in to change notification settings - Fork 102
50 lines (45 loc) · 1.83 KB
/
update-generated-text.yml
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
# Run the scrips documented in https://github.com/d365collaborative/d365fo.tools/wiki/Building-tools
# Creates a pull request with the changes
name: d365fo.tools-Generate-Text
on:
workflow_dispatch:
jobs:
generateText:
name: Generate text
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache Powershell Modules
id: cache-powershell-modules
uses: actions/cache@v3
with:
path: C:\Users\runneradmin\Documents\WindowsPowerShell\Modules
key: 20210527|${{ hashFiles('**/vsts-prerequisites.ps1, **/buildtools.ps1') }}
- name: Prerequisites
if: steps.cache-powershell-modules.outputs.cache-hit != 'true'
shell: powershell
run: build\vsts-prerequisites.ps1
- name: BuildTools
if: steps.cache-powershell-modules.outputs.cache-hit != 'true'
shell: powershell
run: build\buildtools.ps1
- name: Format comment based help
shell: powershell
run: build\format-commentbasedhelp.ps1
- name: Generate parameter unit tests
shell: powershell
run: build\generate-parameterunittests.ps1
- name: Update documentation
shell: powershell
run: build\update-docs.ps1
- name: Generate Find-D365Command index
shell: powershell
run: build\generate-findcommandindex.ps1
- name: Create a pull request for changes
uses: peter-evans/create-pull-request@v5
with:
commit-message: |
🤖 Fix best practice deviations
This pull request was automatically created by the d365fo.tools-Generate-Text action'
title: '🤖 Fix best practice deviations'
body: 'This pull request was automatically created by the d365fo.tools-Generate-Text action. See [Building tools](https://github.com/d365collaborative/d365fo.tools/wiki/Building-tools) for more information.'