-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (59 loc) · 1.66 KB
/
nightly-documentation-update.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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Nightly Documentation Update
on:
workflow_call:
inputs:
repo-name:
required: true
type: string
org-name:
required: false
type: string
default: 51degrees
user:
required: false
type: string
default: Automation51D
email:
required: false
type: string
default: "51DCI@51Degrees.com"
dryrun:
required: false
type: string
default: false
common-ci-ref:
type: string
default: ''
separate-examples:
required: false
type: string
default: false
secrets:
token:
required: true
jobs:
NightlyDocumentationUpdate:
name: Nightly Documentation Update
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'main' }} # main only, for now
steps:
- name: Checkout Common
uses: actions/checkout@v4
with:
repository: ${{ inputs.org-name }}/common-ci
path: common
ref: ${{ inputs.common-ci-ref }}
- name: Generate Documentation
shell: pwsh
working-directory: ${{ github.workspace }}/common/
run: |
$DryRun = [bool]::Parse( "${{ inputs.dryrun }}" )
$SeparateExamples = [bool]::Parse( "${{ inputs.separate-examples}}" )
./nightly-documentation-update.ps1 `
-GitHubToken ${{ secrets.token }} `
-RepoName ${{ inputs.repo-name }} `
-OrgName ${{ inputs.org-name }} `
-GitHubUser ${{ inputs.user }} `
-GitHubEmail ${{ inputs.email }} `
-DryRun $DryRun `
-SeparateExamples $SeparateExamples