File tree Expand file tree Collapse file tree 3 files changed +27
-32
lines changed Expand file tree Collapse file tree 3 files changed +27
-32
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,18 @@ name: Generate terraform docs
2
2
on :
3
3
- pull_request
4
4
jobs :
5
- docs :
5
+
6
+ label :
7
+ if : github.event.action == 'opened'
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : TimonVS/pr-labeler-action@v3
11
+ with :
12
+ configuration-path : .github/pr-labeler.yml
13
+ env :
14
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15
+
16
+ build :
6
17
runs-on : ubuntu-latest
7
18
steps :
8
19
- uses : actions/checkout@v2
53
64
tf_docs_output_file : README.md
54
65
tf_docs_git_push : ' true'
55
66
tf_docs_git_commit_message : ' terraform-docs: automated action'
67
+
68
+ release :
69
+ needs : build
70
+ if : startsWith(github.event.pull_request.head.ref, 'release')
71
+ runs-on : ubuntu-latest
72
+ steps :
73
+ - uses : actions/checkout@v2
74
+ with :
75
+ ref : ${{ github.event.pull_request.head.ref }}
76
+ fetch-depth : 0
77
+
78
+ - name : Generate files for release
79
+ uses : ./
80
+ with :
81
+ entrypoint : " /pre-release.sh"
You can’t perform that action at this time.
0 commit comments