File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ <!--
2+ this documentation was generated by https://github.com/reakaleek/gh-action-readme
3+ with the command `VERSION=main gh action-readme update`
4+ -->
5+
6+ # <!-- name--> Documentation Preview<!-- /name-->
7+
8+ <!-- description-->
9+ Builds and publishes documentation to preview environment
10+ <!-- /description-->
11+
12+ ## Inputs
13+
14+ <!-- inputs-->
15+ | Name | Description | Required | Default |
16+ | ----------| -----------------------------------------------------| ----------| ---------|
17+ | ` strict ` | Whether to fail the build if there are any warnings | ` false ` | ` true ` |
18+ <!-- /inputs-->
19+
20+
21+ ## Usage
22+
23+ <!-- usage action="elastic/docs-builder/actions/preview" version="env:VERSION"-->
24+ ``` yaml
25+ name : Documentation Preview
26+
27+ on :
28+ pull_request : ~
29+ pull_request_target :
30+ types :
31+ - closed
32+ push :
33+ branches :
34+ - main # Depends on the default branch name of the repository
35+
36+ permissions :
37+ contents : read
38+ id-token : write
39+ deployments : write
40+
41+ # Ensure only one workflow runs at a time for a given branch/PR
42+ # Cancel any in-progress runs when a new commit is pushed, except on main branch
43+ concurrency :
44+ group : ${{ github.workflow }}-${{ github.ref }}
45+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
46+
47+ jobs :
48+ docs :
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@v4
52+ - uses : elastic/docs-builder/actions/preview@main
53+ ` ` `
54+ <!--/usage-->
You can’t perform that action at this time.
0 commit comments